selinux/checkpolicy/test
Eric Paris 516cb2a264 checkpolicy: add support for using last path component in type transition rules
This patch adds support for using the last path component as part of the
information in making labeling decisions for new objects.  A example
rule looks like so:

type_transition unconfined_t etc_t:file system_conf_t eric;

This rule says if unconfined_t creates a file in a directory labeled
etc_t and the last path component is "eric" (no globbing, no matching
magic, just exact strcmp) it should be labeled system_conf_t.

The kernel and policy representation does not have support for such
rules in conditionals, and thus policy explicitly notes that fact if
such a rule is added to a conditional.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Steve Lawrence <slawrence@tresys.com>
2011-04-29 15:20:21 -04:00
..
Makefile initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
dismod.c checkpolicy: add support for using last path component in type transition rules 2011-04-29 15:20:21 -04:00
dispol.c checkpolicy: add support for using last path component in type transition rules 2011-04-29 15:20:21 -04:00