portcon in policy modules
10 years later, is this still accurate?
http://danwalsh.livejournal.com/10607.html
Signature · 4 lines
======================================================================== Ian Pilcher [email protected] -------- "I grew up before Mark Zuckerberg invented friendship" -------- ========================================================================
Quoted 1 line · Ian Pilcher
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
Quoted 13 lines
http://danwalsh.livejournal.com/10607.htmlSignature · 9 lines
======================================================================== Ian Pilcher [email protected] -------- "I grew up before Mark Zuckerberg invented friendship" -------- ======================================================================== _______________________________________________ Selinux mailing list [email protected] To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].
Signature · 3 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02 https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02 Dominick Grift
Quoted 7 lines · Dominick Grift
Quoted 1 line · Ian Pilcher
10 years later, is this still accurate?
No:
echo "(portcon tcp 12345 (
system_uobject_rhttp_port_t((s0)(s0))))"Quoted 1 line
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
Quoted 6 lines
Quoted 6 lines