[redhat-lspp] How to build test policy now?

Stephen Smalley sds at tycho.nsa.gov
Thu Dec 22 17:46:44 UTC 2005


On Thu, 2005-12-22 at 11:35 -0600, Kris Wilson wrote:
> The selinux_testsuite Makefile builds test policies:
> 
> include /etc/selinux/config
> POLICYSRC = /etc/selinux/$(SELINUXTYPE)/src/policy
> 
> load:
>         @if [ -d $(POLICYSRC) ]; then \
>                 install test_*.te $(POLICYSRC)/domains/misc; \
>                 $(MAKE) -C $(POLICYSRC) clean load; \
>         else \
>                 echo "ERROR: You must have the policy sources installed in 
> $(POLICYSRC)."; \
>         fi
> 
> This is broken since the directory structure has changed and the source
> files are not installed.  Joy is out for the rest of the year; does anyone 
> know
> a fix for this?  Thanks!

It isn't a trivial task.  You have to convert the test policy over to
using the reference policy interfaces (i.e. rewrite it), then rebuild it
as a loadable policy module.

-- 
Stephen Smalley
National Security Agency




More information about the redhat-lspp mailing list