Re: Creating a new port type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 31, 2016 at 12:51:27PM +0200, Lukas Vrabec wrote:
> 
> 
> Blog by Dan Walsh will helps you.
> 
> http://danwalsh.livejournal.com/10607.html
> 
> Lukas.

Im sending this to the reference policy ML since thats a better place
for it.

The way in the blog post is if you have your own policy that is not part
of upstream. If you want the port to work properly by default it needs
to be in base.pp.
Look in policy/modules/kernel/corenetwork.te.in. You just need to
add one more line and it creates all the interfaces and types for you.

-- Jason

> 
> 
> On 08/30/2016 11:46 PM, Ian Pilcher wrote:
> > I am attempting to write my first SELinux policy module (for the
> > Logitech Media Server/squeezeboxserver).  I would like to add a new
> > port type (slim_devices_port_t) for TCP and UDP 3483.
> >
> > I haven't been able to find an example of how to do this, except for
> > stunnel.te, and the comments in that file don't lead me to believe that
> > it is the right way to do things.
> >
> > Any pointers to examples or documentation would be appreciated.
> >
> > Thanks!
> >
> 
> 
> -- 
> Lukas Vrabec
> SELinux Solutions
> Red Hat, Inc.
> _______________________________________________
> Selinux mailing list
> Selinux@xxxxxxxxxxxxx
> To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
> To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.
_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux