-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 KaiGai Kohei wrote: > 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. > > Thanks There is no list of policy types since anyone can make up a new policy type. The convention used within system-config-selinux is to list the directory names under /etc/selinux/. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkjaOhkACgkQrlYvE4MpobMFiACfbt6gs0dVCDTRgMH2DqgbAmUJ l7YAoNBOUnViBZkEMnOdemkcJclbMXEw =pjX3 -----END PGP SIGNATURE----- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.