selinux/libsepol/include/sepol/policydb
Harry Ciao 3592ebea1a Add role attribute support when expanding role_set_t.
When the rolemap and pointer to the base module are available, if
a non-zero bit in role_set_t.roles is a role attribute, expand it
before remap.

Note, during module compile the rolemap may not be available, the
potential duplicates of a regular role and the role attribute that
the regular role belongs to could be properly handled by
copy_role_allow() and copy_role_trans() during module expansion.

Take advantage of the role_val_to_struct[] of the base module, since
when role_set_expand() is invoked, the role_val_to_struct[] of the
out module may have not been established yet.

Also cleanup the error handling of role_set_expand().

Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
Signed-off-by: Steve Lawrence <slawrence@tresys.com>
2011-07-25 10:09:43 -04:00
..
avrule_block.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avtab.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
conditional.h selinux: conditional expression type validation was off-by-one 2008-08-19 16:34:59 -04:00
constraint.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ebitmap.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
expand.h Add role attribute support when expanding role_set_t. 2011-07-25 10:09:43 -04:00
flask_types.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
flask.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
hashtab.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
hierarchy.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
link.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
mls_types.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
module.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
polcaps.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
policydb.h Add role attribute support when generating pp files. 2011-07-25 10:09:34 -04:00
services.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
sidtab.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
symtab.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
util.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00