All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Grier <grier@uiuc.edu>
To: Colin Walters <walters@verbum.org>
Cc: SELinux <SELinux@tycho.nsa.gov>
Subject: Re: policy questions and bugs
Date: Wed, 19 May 2004 15:07:59 -0500	[thread overview]
Message-ID: <20040519200759.GA13982@balder> (raw)
In-Reply-To: <1084640772.10945.9.camel@nexus.verbum.private>

> ----- Forwarded message from Colin Walters <walters@verbum.org> -----
>                                                                                              
> > When running some services, I would like them to run as a non root uid                     
> > and gid (ircd and oidentd are the services which I usually do this                         
> > with), which I normally do with su. When we do this with selinux                           
> > running, we are prompted to enter a role and type (not select from a                       
> > list). Is this just a matter of defining a transition to acommodate for                    
> > this to happen?                                                                            
>                                                                                              
> You run "su" interactively from a root shell?  I'd suggest instead using                     
> init scripts.                                                                                

No, not interactively. I am trying to use the init scripts. The way it
works is the init function daemon() (from /etc/init.d/functions)
accepts a --user argument to run the daemon as a given user. This
eventually calls su -c to launch the daemon as the approprate user.
The problem is that su prompts, asking to switch roles, and thus this
causes init to hang. Which is bad.

I've tried editing /etc/pam.d/su to remove the "multiple" keyword as
is indicated in the FAQ, but this does nothing to resolve the issue..

> > Why do normal users have the option of changing to sysadm?                                 
>                                                                                              
> That's a Red Hat addition to the policy.                                                     

How do I make it go away? I thought it was a matter of removing the
transition from sysadm to user in
/etc/security/selinux/src/policy/domains/user.te and then reloading,
but this doesn't seem to work. I suspect this is probably the reverse
of the transition I want to disable anyways.

> > I don't particularly like this, and I could remove it, but I'm                             
> > looking for the reasoning behind the default being like this.                              
>                                                                                              
> Basically to make the SELinux experience more like a "normal" Linux                          
> system.                                                                                      

In what ways?

-- 
Chris Grier <grier@uiuc.edu>

--
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-19 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15  3:30 policy questions and bugs Chris Grier
2004-05-15 17:06 ` Colin Walters
2004-05-19 20:07   ` Chris Grier [this message]
2004-05-19 21:04     ` Russell Coker
2004-05-20  6:26     ` Luke Kenneth Casson Leighton
2004-05-15 21:29 ` Russell Coker

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=20040519200759.GA13982@balder \
    --to=grier@uiuc.edu \
    --cc=SELinux@tycho.nsa.gov \
    --cc=walters@verbum.org \
    /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.