From: Daniel J Walsh <dwalsh@redhat.com>
To: SELinux <SELinux@tycho.nsa.gov>
Subject: I would like to move some of the port definitions out of the te files into a separate location.
Date: Thu, 04 Nov 2004 13:43:46 -0500 [thread overview]
Message-ID: <418A7862.9060807@redhat.com> (raw)
I have modified can_network to be able to accept ports that you can
connect to.
So you can do a
can_network(local_login_t, `kerberos_port_t')
or
can_udp_network($1_t, `resolve_port_t')
The problem is that some of these ports are not defined unless the te
file is included. Thus net_contexts is
flooded with ifdef's. The problem is that this is written from a daemon
point of view. IE if I am running the
kerberos daemon I want to name_bind to it so I define kerberos_port_t.
As we more to the connect side, we
can lock down daemons to say that they can only connect to certain ports
so we might need kerberos_port_t
defined even though our policy does not include kerberos.te. I might
want to lock down a daemon on targeted
to only be able to connect to port XYZ but do not want to support policy
for XYZ daemon.
What do you think of moving most of the definitions to types/network.te
or types/ports.te and allowing them to be used by all daemons.
Dan
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
reply other threads:[~2004-11-04 18:43 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=418A7862.9060807@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.