How do you expose a policy interface?

Dominick Grift domg472 at gmail.com
Thu Oct 8 17:47:37 UTC 2009


On Thu, Oct 08, 2009 at 09:19:21AM -0700, Nathan Kinder wrote:
> I'm writing two policy modules for two separate packages
> (389-ds-base and 389-admin).  I would like to expose some macros via
> an interface from my dirsrv policy for use by the dirsrv-admin
> policy.  I have defined an interface in my dirsrv.if file and built
> and installed the dirsrv policy module.  Apparently, this doesn't
> expose the interface as I get an error when building my dirsrv-admin
> policy that indicates that it doesn't know anything about my new
> interface.

Make sure that both source policies are in the same directory. For example i put all my .te, .if and .fc files in ~/modules
Than build the source policy modules: cd ~/modules; make -f /usr/share/selinux/devel/Makefile

Finally install them: semodule -i ~/modules/*.pp

This works for me.
> 
> What is the proper way to expose a policy interface?  Does my
> dirsrv.if file need to be installed on the system somewhere
> specific?
> 
> Thanks,
> -NGK
> 
> --
> fedora-selinux-list mailing list
> fedora-selinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-selinux-list/attachments/20091008/57538443/attachment.sig>


More information about the fedora-selinux-list mailing list