From: Ivan Gyurdiev <ivg2@cornell.edu>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>, SE Linux <selinux@tycho.nsa.gov>
Subject: Re: Why cron doesn't work in strict policy
Date: Tue, 07 Feb 2006 09:40:05 -0500 [thread overview]
Message-ID: <43E8B145.4090907@cornell.edu> (raw)
In-Reply-To: <43E8B013.8000000@redhat.com>
>>> cron ---> getseuserbyname(system_u)
>>> selinux <--- (user_u, s0)
>>> cron ---> get_default_context_with_level(user_u, s0)
>>> selinux <--- (user_u:user_r:user_xserver_t) (????)
>>> cron ---> security_compute_av(user_u:user_r:user_xserver_t,
>>> system_u:object_r:system_cron_spool_t)
>>> selinux <-- not allowed
>>>
>>> The problem comes from system_u being mapped to __default__ in the
>>> seusers file, although I have no idea why (user_u, s0) would return
>>> default context of user_xserver_t either.
>> So for using system cronfiles, the getseuserbyname() call needs to be
>> skilled (since you've already decided on the user - system_u, user.c:
>> line 87). Not sure about level. Alternatively you can query using root.
> Seems to me we have two choices. One is to change cron to default to
> "root" when there is no username or to add system_u to the seusers file.
Well, on second thought querying root is not going to get you system_u
in any way...
I think the seuser query just needs to be skipped if you've decided to
use system_u.
--
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:[~2006-02-07 14:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <43E7C52E.601@cornell.edu>
[not found] ` <43E7C804.3040507@cornell.edu>
2006-02-07 14:34 ` Why cron doesn't work in strict policy Daniel J Walsh
2006-02-07 14:40 ` Ivan Gyurdiev [this message]
2006-02-07 14:43 ` Stephen Smalley
2006-02-07 14:40 ` Daniel J Walsh
2006-02-07 14:42 ` Ivan Gyurdiev
2006-02-07 14:55 ` Stephen Smalley
2006-02-07 15:02 ` Ivan Gyurdiev
2006-02-07 15:23 ` Daniel J Walsh
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=43E8B145.4090907@cornell.edu \
--to=ivg2@cornell.edu \
--cc=dwalsh@redhat.com \
--cc=sds@tycho.nsa.gov \
--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.