Re: portcon in policy modules

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

 



On Wed, 2017-03-15 at 21:30 +0100, Dominick Grift wrote:
> On Wed, Mar 15, 2017 at 02:52:29PM -0500, Ian Pilcher wrote:
> > 10 years later, is this still accurate?
> 
> No:
> 
> echo "(portcon tcp 12345 (system_u object_r http_port_t ((s0)(s0))))"
> > myport.cil && semodule -i myport.cil

Note that this will only work on distro releases that include CIL
support (e.g. RHEL 7.3 or later, Fedora 23 or later).  Prior to that,
you would need to use semanage for port context assignments.semodu

> 
> 
> 
> > 
> >    http://danwalsh.livejournal.com/10607.html
> > 
_______________________________________________
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