selinux/checkpolicy
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
..
test checkpolicy: add support for using last path component in type transition rules 2011-04-29 15:20:21 -04:00
ChangeLog Revision version bump 2011-05-17 10:18:26 -04:00
checkmodule.8 Author: Steve Lawrence 2010-06-14 14:45:46 -04:00
checkmodule.c Author: Daniel J Walsh 2010-06-14 14:44:44 -04:00
checkpolicy.8 Patch for Ticket #1 [1672486] (checkpolicy/checkmodule) 2009-11-27 13:39:03 -05:00
checkpolicy.c Patch for Ticket #1 [1672486] (checkpolicy/checkmodule) 2009-11-27 13:39:03 -05:00
checkpolicy.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -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
module_compiler.c Add role attribute support when compiling modules. 2011-07-25 10:09:27 -04:00
module_compiler.h Add role attribute support when compiling modules. 2011-07-25 10:09:27 -04:00
parse_util.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
parse_util.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
policy_define.c Add role attribute support when expanding role_set_t. 2011-07-25 10:09:43 -04:00
policy_define.h Add role attribute support when compiling modules. 2011-07-25 10:09:27 -04:00
policy_parse.y Add role attribute support when compiling modules. 2011-07-25 10:09:27 -04:00
policy_scan.l Add role attribute support when compiling modules. 2011-07-25 10:09:27 -04:00
queue.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
queue.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
VERSION Revision version bump 2011-05-17 10:18:26 -04:00