selinux/policycoreutils
Steve Lawrence 81d8cea807 policycoreutils: pp: define type aliases in the correct scope
Previously, type aliases were converted to CIL in the global namespace,
regardless of which scope they were actually defined in. So essentially
type aliases could never be in optionals. For the most part this worked,
however, in some small number of cases, a type alias could reference a
type defined inside an optional. If that optional was disabled, the type
would be disabled and so the type alias would fail to resolve, causing
policy to fail to build.

Unfortunately, type alises are stored in pp modules different than other
symbols (e.g. types/roles/etc) so they must be added to scopes
differently. So this patch gathers up all type aliases in a list and
keeps track of which scope each type alias is defined in. When we enter
a new scope, use that list to determine which type alias are defined
there and print the appropriate CIL statements.

Signed-off-by: Steve Lawrence <slawrence@tresys.com>
Reviewed-by: Yuli Khodorkovskiy <ykhodorkovskiy@tresys.com>
2014-11-12 08:06:41 -05:00
..
.tx Update Translations 2013-10-24 13:58:39 -04:00
audit2allow Use $(PYTHON) instead of "python" in every Makefile 2014-10-02 09:56:49 -04:00
gui Fix up desktop files to match current standards 2013-11-08 15:50:59 -05:00
hll policycoreutils: pp: define type aliases in the correct scope 2014-11-12 08:06:41 -05:00
load_policy Minor manpages improvements 2013-11-06 09:36:33 -05:00
man Merge branch 'fedora' into master-merge 2013-10-24 15:24:17 -04:00
mcstrans policycoreutils: mcstrans: use string_to_av_perm() to calculate permission access vector 2014-08-29 09:19:50 -04:00
newrole Fix gcc -Wstrict-prototypes warnings 2014-10-02 09:56:38 -04:00
po Update Translations 2013-10-24 13:58:39 -04:00
restorecond Fix gcc -Wstrict-prototypes warnings 2014-10-02 09:56:38 -04:00
run_init Fix gcc -Wstrict-prototypes warnings 2014-10-02 09:56:38 -04:00
sandbox Use $(PYTHON) instead of "python" in every Makefile 2014-10-02 09:56:49 -04:00
scripts Minor manpages improvements 2013-11-06 09:36:33 -05:00
secon Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage Use $(PYTHON) instead of "python" in every Makefile 2014-10-02 09:56:49 -04:00
semodule policycoreutils: add semodule option to set store root path 2014-08-26 08:03:31 -04:00
semodule_deps Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
semodule_expand tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
semodule_link tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
semodule_package policycoreutils: fix most gcc -Wwrite-strings warnings 2014-10-02 09:56:34 -04:00
sepolgen-ifgen tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
sepolicy Use $(PYTHON) instead of "python" in every Makefile 2014-10-02 09:56:49 -04:00
sestatus Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
setfiles Fix gcc -Wstrict-prototypes warnings 2014-10-02 09:56:38 -04:00
setsebool Cleanup whitespace 2013-11-08 15:52:11 -05:00
.gitignore policycoreutils: add a HLL compiler to convert policy packages (.pp) to CIL 2014-08-26 08:03:31 -04:00
ChangeLog Bump to release candidate 5 2014-10-29 11:01:03 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile policycoreutils: add a HLL compiler to convert policy packages (.pp) to CIL 2014-08-26 08:03:31 -04:00
VERSION Bump to release candidate 5 2014-10-29 11:01:03 -04:00