selinux/checkpolicy
Harry Ciao 16675b7f96 Add role attribute support when compiling modules.
1. Add a uint32_t "flavor" field and an ebitmap "roles" to the
role_datum_t structure;

2. Add a new "attribute_role" statement and its handler to declare
a role attribute;

3. Modify declare_role() to setup role_datum_t.flavor according
to the isattr argument;

4. Add a new "roleattribute" rule and its handler, which will record
the regular role's (policy value - 1) into the role attribute's
role_datum_t.roles ebitmap;

5. Modify the syntax for the role-types rule only to define the
role-type associations;

6. Add a new role-attr rule to support the declaration of a single
role, and optionally the role attribute that the role belongs to;

7. Check if the new_role used in role-transition rule is a regular role;

8. Support to require a role attribute;

9. Modify symtab_insert() to allow multiple declarations only for
the regular role, while a role attribute can't be declared more than once
and can't share a same name with another regular role.

Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
Signed-off-by: Steve Lawrence <slawrence@tresys.com>
2011-07-25 10:09:27 -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 compiling modules. 2011-07-25 10:09:27 -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