Re: using an interface defined in another loaded module

Lukas Vrabec <[email protected]>
Newsgroups gmane.linux.redhat.fedora.selinux
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 11/4/19 11:02 PM, zer0 0ne wrote:
> Thanks for the explanation Lukas.  I have one follow up question about the example you described, 
> 
> "So yes, if you're compiling B policy, you needs to have a.if interface file in one directory with B policy sources."
>> If I have a.if in the B policy sources, is that sufficient or do I need to have a.te also in B policy sources? When I experimented with just a.if B policy compilation failed and was successful when I copied the a.te into B policy sources directory. Is this expected or is it an issue with policies I have written.

You could have only a.if in B policy sources, *but* A policy (a.pp) has
to be loaded to the kernel before you installing B policy module.

Lukas.

> _______________________________________________
> selinux mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
> 


-- 
Lukas Vrabec
SELinux Evangelist,
Senior Software Engineer, Security Technologies
Red Hat, Inc.

_______________________________________________
selinux mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE3wrP3ArXoyYgAS7LRyAaxC8pzgYFAl3BSHIACgkQRyAaxC8p
zgZwRAf+Ncg0/38oSmhlatBC/P2ZZ0GzYWCkOx7W9grbJMUQTJYl1hIhwunH7/xr
SLbu5DAIichIe3j7QSnzb2Jf9nug8R3aRHk7J0Qz5nQlKA2xnNkzTzcmENFjp2Nn
yvALV8zkb2Ee68a6myniDOoZV1ZpwQbB2mZsIuXwOW2YixW5MB1GoOUWTygGibLQ
RBMg/hKqEfLX36+c2ZSmyZJGIgpL7eu/+VsEKC95VetRcTz647u1Xo+zAB7e+SJI
m1Ktp/DAZzh3BFQ4wtLr4b95e+WFsIHPrmbIlD90UAeUnhcHLPurVCTJuF1eYxqC
F6RpvWaA8LPyEN8Vx1OZYaQ6BZtYuQ==
=kuT2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.