From: Russell Coker <rcoker@redhat.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: Stephen Smalley <sds@epoch.ncsc.mil>,
sgrubb@redhat.com, Colin Walters <walters@redhat.com>,
SE Linux list <selinux@tycho.nsa.gov>
Subject: Re: Limiting the power of can_network, improving the security of strict policy.
Date: Thu, 28 Oct 2004 01:18:17 +1000 [thread overview]
Message-ID: <1098890298.16430.145.camel@aeon> (raw)
In-Reply-To: <417FB917.8030109@redhat.com>
On Wed, 2004-10-27 at 11:04 -0400, Daniel J Walsh wrote:
> Finally we are looking into limiting the power of can_network.
> Currently any daemon that has can_network can receive
> and establish TCP/UDP connections. The only thing not provided is
> name_bind. I want to break this out to eliminate the
> ability for daemons also to connect. So an incoming only daemon, can
> not establish a connection back out. To do this
> I have modified create_socket_perms and eliminated the connect call. I
> have added a connect_socket_perms which includes
> the create_socket_perms. This has caused many changes to be made in
> policy, and I am not sure if it was a good idea?
I think it might be better to leave create_socket_perms as it is and
have another macro connected_socket_perms which doesn't have create
access.
> Also I modified can_network to take a second parameter of the type of
> the connection (udp or tcp). This allows you to turn off tcp, connections
> on a UDP application. (I am not sure you can do this for a tcp only app
> if they are going to use name service.)
What if we have two new macros can_tcp_network() and can_udp_network()
which can_network() invokes.
> Is this a good idea or am I wasting my time?
It's a great idea! But I think some minor changes to the way that
backward compatability works would be good.
--
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.
prev parent reply other threads:[~2004-10-27 15:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 15:04 Limiting the power of can_network, improving the security of strict policy Daniel J Walsh
2004-10-27 15:17 ` steven harp
2004-10-27 17:27 ` Jayendren Anand Maduray
2004-10-27 20:39 ` Valdis.Kletnieks
2004-10-28 11:07 ` Russell Coker
2004-10-27 15:18 ` Russell Coker [this message]
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=1098890298.16430.145.camel@aeon \
--to=rcoker@redhat.com \
--cc=dwalsh@redhat.com \
--cc=sds@epoch.ncsc.mil \
--cc=selinux@tycho.nsa.gov \
--cc=sgrubb@redhat.com \
--cc=walters@redhat.com \
/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.