* Using interfaces defined elsewhere
@ 2009-05-05 19:25 Bandan Das
2009-05-05 19:58 ` Daniel J Walsh
0 siblings, 1 reply; 3+ messages in thread
From: Bandan Das @ 2009-05-05 19:25 UTC (permalink / raw)
To: selinux; +Cc: Johnson, Richard
Hello,
Here's what I am trying to do :
I have a mySNMP policy with sources: mysnmp.te mysnmp.fc mysnmp.if and a
dummyapp policy with sources: dummyapp.te dummyapp.fc and dummyapp.if.
The SNMP policy interface file has an interface called
mysnmp_config_read_access() and I would like to use it in my dummyapp
policy sources : mysnmp_config_read_access(dummyapp_t)
What's the best way to do this ? Not just for the above example for a
case where I have multiple custom interface files.
I tried copying the SNMP interface file
to /usr/share/selinux/include/mysnmp. But the problem with this approach
is that I have to be root to be able to do this. Can I ask make to use
multiple interface files (dummyapp.if and mysnmp.if) when compiling the
dummyapp policy module ?
Thanks,
Bandan
--
BSD
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using interfaces defined elsewhere
2009-05-05 19:25 Using interfaces defined elsewhere Bandan Das
@ 2009-05-05 19:58 ` Daniel J Walsh
2009-05-05 20:11 ` Bandan Das
0 siblings, 1 reply; 3+ messages in thread
From: Daniel J Walsh @ 2009-05-05 19:58 UTC (permalink / raw)
To: Bandan Das; +Cc: selinux, Johnson, Richard
On 05/05/2009 03:25 PM, Bandan Das wrote:
> Hello,
>
> Here's what I am trying to do :
>
> I have a mySNMP policy with sources: mysnmp.te mysnmp.fc mysnmp.if and a
> dummyapp policy with sources: dummyapp.te dummyapp.fc and dummyapp.if.
> The SNMP policy interface file has an interface called
> mysnmp_config_read_access() and I would like to use it in my dummyapp
> policy sources : mysnmp_config_read_access(dummyapp_t)
>
> What's the best way to do this ? Not just for the above example for a
> case where I have multiple custom interface files.
>
> I tried copying the SNMP interface file
> to /usr/share/selinux/include/mysnmp. But the problem with this approach
> is that I have to be root to be able to do this. Can I ask make to use
> multiple interface files (dummyapp.if and mysnmp.if) when compiling the
> dummyapp policy module ?
>
> Thanks,
> Bandan
>
>
The make file will also look in the current directory for .if files.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using interfaces defined elsewhere
2009-05-05 19:58 ` Daniel J Walsh
@ 2009-05-05 20:11 ` Bandan Das
0 siblings, 0 replies; 3+ messages in thread
From: Bandan Das @ 2009-05-05 20:11 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: selinux, Johnson, Richard
On Tue, 2009-05-05 at 15:58 -0400, Daniel J Walsh wrote:
> On 05/05/2009 03:25 PM, Bandan Das wrote:
> > Hello,
> >
> > Here's what I am trying to do :
> >
> > I have a mySNMP policy with sources: mysnmp.te mysnmp.fc mysnmp.if and a
> > dummyapp policy with sources: dummyapp.te dummyapp.fc and dummyapp.if.
> > The SNMP policy interface file has an interface called
> > mysnmp_config_read_access() and I would like to use it in my dummyapp
> > policy sources : mysnmp_config_read_access(dummyapp_t)
> >
> > What's the best way to do this ? Not just for the above example for a
> > case where I have multiple custom interface files.
> >
> > I tried copying the SNMP interface file
> > to /usr/share/selinux/include/mysnmp. But the problem with this approach
> > is that I have to be root to be able to do this. Can I ask make to use
> > multiple interface files (dummyapp.if and mysnmp.if) when compiling the
> > dummyapp policy module ?
> >
> > Thanks,
> > Bandan
> >
> >
> The make file will also look in the current directory for .if files.
So, that means every time I compile a new module that uses custom
interfaces that are defined in separate if files, I will have to copy
over all these interface files to the current directory.
I think a better approach would be to ask make to look at a specific
location for interface files. But, then I didn't want to alter the
makefile. So, what you suggested seems to be my only option.
Bandan
--
BSD
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-05 20:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-05 19:25 Using interfaces defined elsewhere Bandan Das
2009-05-05 19:58 ` Daniel J Walsh
2009-05-05 20:11 ` Bandan Das
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.