All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Stephen Smalley <sds@epoch.ncsc.mil>
Cc: Steve Greenland <steveg@moregruel.net>,
	SE-Linux <selinux@tycho.nsa.gov>,
	193644@bugs.debian.org
Subject: Re: Bug#193644: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=193644 (cron upstream patch)
Date: Thu, 20 May 2004 12:23:47 +0000	[thread overview]
Message-ID: <20040520122347.GB8810@lkcl.net> (raw)
In-Reply-To: <1085054796.521.36.camel@moss-spartans.epoch.ncsc.mil>

On Thu, May 20, 2004 at 08:06:36AM -0400, Stephen Smalley wrote:

> >  "system" is like... a privilege ABOVE root, and i presume its
> >  closest equivalent is to the "SYSTEM" SID on the NT
> >  (actually VAX/VMS) security model.
> 
> No.  It is just a way of distinguishing system processes from user
> processes.  

 oh, okay :)

 i stand corrected.

> >  i think this can be resolved by adding an extra argument to
> >  process_crontab.  to put that another way: if an extra
> >  argument is added which is used solely the selinux context,
> >  the issue you have, steve, over the change from *system*
> >  to system_u goes away.
> 
> I don't think that this is necessary; it sounds like we can use the
> username field, assuming that it can be system_u for system cron jobs
> (or something else that is easily recognizable and can be mapped to
> system_u by the SELinux code).

 then that leaves the other approach, the one suggested by russell:
 to do a strcmp(fname, "*system*") == 0 in process_crontab, and
 in that specific case to call get_default_context("system_u", ...)

 i don't think steve is going to allow any changes upstream to crond
 because the letters "system_u" _could_ be a valid username used
 by a NON selinux enabled system in /etc/passwd or other security
 system.

 l.


--
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-05-20 12:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-19  9:14 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=193644 (cron upstream patch) Luke Kenneth Casson Leighton
2004-05-19 13:30 ` Stephen Smalley
2004-05-19 14:02   ` Luke Kenneth Casson Leighton
2004-05-19 18:11     ` Bug#193644: " Steve Greenland
2004-05-19 20:00       ` Russell Coker
2004-05-20  6:14         ` Luke Kenneth Casson Leighton
2004-05-19 20:00       ` Luke Kenneth Casson Leighton
2004-05-19 21:02         ` Russell Coker
2004-05-19 21:54         ` Steve Greenland
2004-05-20  6:06           ` Luke Kenneth Casson Leighton
2004-05-20 12:06             ` Stephen Smalley
2004-05-20 12:23               ` Luke Kenneth Casson Leighton [this message]
2004-05-20 11:57           ` Stephen Smalley
2004-05-20 14:22             ` Luke Kenneth Casson Leighton
2004-05-20 15:48               ` Steve Greenland
2004-05-20 17:44                 ` Russell Coker
2004-05-20 18:55                 ` Luke Kenneth Casson Leighton

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=20040520122347.GB8810@lkcl.net \
    --to=lkcl@lkcl.net \
    --cc=193644@bugs.debian.org \
    --cc=sds@epoch.ncsc.mil \
    --cc=selinux@tycho.nsa.gov \
    --cc=steveg@moregruel.net \
    /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.