Skip to contentSkip to conversation

This past week I was doing a demo of how to build an Userspace Object Manager for firewalld

DISCUSSION Daniel J Walsh 1 participant 1 message Feb 11, 2014 SELinux security module

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had a problem where I wanted to allow a cupsd_t to be able to open a particular port at the firewall, say the ipp_port_t port.

sepolicy network -t ipp_port_t
ipp_port_t: tcp: 631,8610-8614
ipp_port_t: udp: 631,8610-8614

The problem, cups is sending across and open tcp/631 and I need firewalld to check something like

allow cupsd_t ipp_port_t:tcp_netfilter open;

The only way for firewalld to figure out what type port tcp/361 is assigned to, was to load the sepolicy framework and read in the currently loaded policy.

I think we should add an interface to the /sys/fs/selinux that would take a port number and a protocol and return a process_type. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlL6LooACgkQrlYvE4MpobObLgCcCVn7A5N1oR1FzkWu4nxwsRB3 p/YAoKHmGISKqsJQySGZVsdPSm+lEF+Z
=jwBl
-----END PGP SIGNATURE-----