On Wed, 24 Sep 2008 09:18:16 +0900, KaiGai Kohei said: > James Morris wrote: > > Is there a programmatic way to determine the type of SELinux policy > > configured on a system? (e.g. "targeted") > > > > I've looked in the SELinux userspace and SETools repositories but not > > found a library call to do this. > > I also want to know the way to obtain the list of policy types, > because it is necessary to make a specfile which provides policy > modules. There be dragons here. :) Keep in mind that the list of available policies on the machine that you create an RPM spec file and do the 'rpmbuild' may differ from the actual install environment. So keep straight your Requires: and Build-Requires: ;)
Attachment:
pgpTFxtjpgbiU.pgp
Description: PGP signature