platform_external_selinux/libsepol
Harry Ciao 0299119625 libsepol: Skip writing role attributes for policy.X and downgraded pp.
Role attributes are redundant for policy.X, their destiny has been
fulfilled in the expand phase when their types.types ebitmap have
been populated to that of their sub regular roles.

When pp is downgraded, role_datum_t's the flavor flag and roles
ebitmap would be discarded, resulting in role attributes useless
at all. So for such case they should also be skipped.

Deduct the number of role attributes from p_roles.table->nel when
they are skipped.

Last, uncount attributes number before converting endianness.

Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
2011-09-15 17:19:20 -04:00
..
include Add role attribute support when expanding role_set_t. 2011-07-25 10:09:43 -04:00
man initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
src libsepol: Skip writing role attributes for policy.X and downgraded pp. 2011-09-15 17:19:20 -04:00
tests reactivate attribute mapping unit test 2010-03-24 13:55:23 -04:00
utils initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
.gitignore Add subdirectory .gitignore files. 2009-10-20 21:25:55 -04:00
ChangeLog update repo for 2011-08-03 with version and changelog updates 2011-08-03 18:09:02 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
VERSION update repo for 2011-08-03 with version and changelog updates 2011-08-03 18:09:02 -04:00