selinux/libsepol/include/sepol
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
..
policydb Add role attribute support when compiling modules. 2011-07-25 10:09:27 -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