Skip to contentSkip to conversation

portcon in policy modules

DISCUSSION Ian Pilcher 3 participants 3 messages Mar 15, 2017 – Mar 16, 2017 SELinux security module

lore
Share & tools
lore
#0 lore raw

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" --------
========================================================================
#1 lore raw
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.html
Signature · 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
#2 lore raw
Quoted 7 lines · Dominick Grift
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))))"

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

   http://danwalsh.livejournal.com/10607.html