From: Daniel J Walsh <dwalsh@redhat.com>
To: russell@coker.com.au
Cc: jwcart2@epoch.ncsc.mil, SELinux <selinux@tycho.nsa.gov>,
Stephen Smalley <sds@epoch.ncsc.mil>
Subject: Re: Patch to make can_network stronger and remove nscd tunable.
Date: Wed, 03 Nov 2004 11:23:38 -0500 [thread overview]
Message-ID: <4189060A.1010003@redhat.com> (raw)
In-Reply-To: <200411031641.59816.russell@coker.com.au>
Russell Coker wrote:
>On Wednesday 03 November 2004 02:56, Daniel J Walsh <dwalsh@redhat.com> wrote:
>
>
>>Updated with Russell's "daemon" change and other fixes.
>>
>>How does this look?
>>
>>
>
>+can_network($1_login_t)
>+allow $1_login_t self:{ tcp_socket udp_socket } connect;
>
>local_login_t does not need network access unless you use NIS or similar.
>can_ypbind() may be appropriate, but no other rules for network access for
>$1_login_t.
>
>Your patch is allowing many domains access to { tcp_socket udp_socket }
>connect which have no need for network connections other than ypbind. It's
>probably best to just add this to can_ypbind and not add it to ANY daemon
>policy except for daemons which obviously need it. Otherwise this change
>will make the policy weaker overall by explicitely adding permissions where
>they are not needed. If we don't have the time to do this properly right now
>then we should leave can_network as it is until we have more time to work on
>it.
>
>
>
Not true. pam_kerberos, pam_ldap require network access. login already
has can_ypbind, which
used to be turned on by default. Now there is a boolean to turn it off.
and it is off by default, because it
gives too many privs. The problem is that these other protocols are
also allowed/required. So this policy
is actually tighter since the allow_ypbind is now off.
>Probably the best thing to do is to merge a patch that doesn't allow such
>access to any daemon apart from the most obvious cases (EG allowing a mail
>server to make TCP connections). Things will work for the binary policy in
>Fedora as NIS support is enabled. Then we can spend the next couple of
>months testing out all the daemons and submitting patches for exactly the
>connection access that is required.
>
>
>+mount_domain(sysadm, mount, `, fs_domain, nscd_client_domain')
>
>What does mount do that requires nscd access?
>
>
>
NFS Mounts probably.
>Why does user_ssh_t require kill capability?
>
>Does dhcpc_t require TCP connection access when there is no NIS?
>
>
>
Not sure.
>Does innd_t require UDP connection access when there is no NIS?
>
>
>
>
Probably not.
>sys_tty_config capability is another thing that should go into
>daemon_base_domain(), but as a dontaudit.
>
>
>
Ok.
--
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.
next prev parent reply other threads:[~2004-11-03 16:23 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 12:43 cdrecord deadlocks linux 2.6.8.1 (problem in setscheduler) Thomas Bleher
2004-10-18 13:49 ` Stephen Smalley
2004-10-18 15:03 ` James Morris
2004-10-18 19:11 ` Chris Wright
[not found] ` <4173F737.1070204@immunix.com>
2004-10-18 19:07 ` Stephen Smalley
2004-10-18 19:14 ` Chris Wright
[not found] ` <20041018214052.GB4336@immunix.com>
2004-10-19 12:14 ` Stephen Smalley
2004-10-19 16:21 ` Chris Wright
2004-10-19 18:17 ` Stephen Smalley
2004-10-19 18:27 ` Chris Wright
2004-10-19 18:36 ` James Morris
2004-10-19 18:39 ` Chris Wright
2004-10-19 18:52 ` Stephen Smalley
2004-10-19 19:02 ` Chris Wright
2004-10-19 19:14 ` Stephen Smalley
2004-10-19 19:20 ` Chris Wright
2004-10-19 20:09 ` Stephen Smalley
2004-10-19 20:17 ` Stephen Smalley
2004-10-19 20:42 ` James Morris
2004-10-19 21:09 ` Chris Wright
2004-10-20 12:23 ` Stephen Smalley
2004-10-20 12:44 ` Stephen Smalley
[not found] ` <20041020154909.GA1917@immunix.com>
2004-10-20 16:01 ` Stephen Smalley
2004-10-20 16:07 ` Chris Wright
2004-10-20 17:41 ` Chris Wright
2004-10-20 20:05 ` Stephen Smalley
2004-10-21 0:28 ` Chris Wright
2004-10-18 14:38 ` Luke Kenneth Casson Leighton
2004-10-18 21:58 ` cdrecord patch [was: Re: cdrecord deadlocks linux 2.6.8.1 (problem in setscheduler)] Thomas Bleher
2004-10-29 19:31 ` James Carter
2004-11-01 16:18 ` Patch to make can_network stronger and remove nscd tunable Daniel J Walsh
2004-11-02 13:27 ` Russell Coker
2004-11-02 14:30 ` Daniel J Walsh
2004-11-02 14:39 ` Stephen Smalley
2004-11-02 14:44 ` Daniel J Walsh
2004-11-02 14:50 ` Daniel J Walsh
2004-11-02 15:38 ` Russell Coker
2004-11-02 15:48 ` Russell Coker
2004-11-02 15:55 ` Daniel J Walsh
2004-11-03 5:23 ` Russell Coker
2004-11-02 15:56 ` Daniel J Walsh
2004-11-03 0:07 ` Thomas Bleher
2004-11-03 6:16 ` Russell Coker
2004-11-03 16:17 ` Daniel J Walsh
2004-11-03 5:41 ` Russell Coker
2004-11-03 16:23 ` Daniel J Walsh [this message]
2004-11-03 18:45 ` Colin Walters
2004-11-03 22:13 ` Colin Walters
2004-11-03 22:49 ` Daniel J Walsh
2004-11-05 13:10 ` Thomas Bleher
2004-11-05 13:38 ` Stephen Smalley
2004-11-05 21:24 ` James Carter
2004-11-06 10:46 ` Thomas Bleher
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=4189060A.1010003@redhat.com \
--to=dwalsh@redhat.com \
--cc=jwcart2@epoch.ncsc.mil \
--cc=russell@coker.com.au \
--cc=sds@epoch.ncsc.mil \
--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.