All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: SELinux <selinux@tycho.nsa.gov>
Subject: This past week I was doing a demo of how to build an Userspace Object Manager for firewalld
Date: Tue, 11 Feb 2014 15:07:06 +0100	[thread overview]
Message-ID: <52FA2E8A.9040904@redhat.com> (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-----

                 reply	other threads:[~2014-02-11 14:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52FA2E8A.9040904@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.