selinux/libsepol/include/sepol
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
..
policydb Add role attribute support when expanding role_set_t. 2011-07-25 10:09:43 -04:00
boolean_record.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_record.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
debug.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
errcodes.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
handle.h libsepol: method to check disable dontaudit flag. 2009-07-07 14:19:57 -04:00
iface_record.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
interfaces.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
node_record.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
nodes.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
policydb.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
port_record.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ports.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
roles.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
sepol.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_record.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00