All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SELinux-dev@tresys.com, selinux@tycho.nsa.gov
Subject: Re: libsemanage patch to make seusers world readable.
Date: Wed, 07 Dec 2005 13:10:44 -0500	[thread overview]
Message-ID: <439725A4.3050200@redhat.com> (raw)
In-Reply-To: <1133978418.2366.94.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Wed, 2005-12-07 at 12:48 -0500, Daniel J Walsh wrote:
>   
>> Stephen Smalley wrote:
>>     
>>> On Wed, 2005-12-07 at 12:33 -0500, Daniel J Walsh wrote:
>>> diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage_store.c libsemanage-1.3.64/src/semanage_store.c
>>> --- nsalibsemanage/src/semanage_store.c	2005-11-16 08:44:47.000000000 -0500
>>> +++ libsemanage-1.3.64/src/semanage_store.c	2005-12-07 08:07:02.000000000 -0500
>>> @@ -917,6 +917,7 @@
>>>  		INFO(sh, "Non-fatal error:  Could not copy %s to %s.", active_seusers, store_seusers);
>>>  		/* Non-fatal; fall through */
>>>  	}
>>> +	chmod(store_seusers, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
>>>  
>>>  	if (!sh->do_reload)
>>>  		goto skip_reload;
>>>
>>> Why does seusers need to be world readable?  Also, I think we would want
>>> to solve this more generally, e.g. file_contexts has a similar issue if
>>> you want it to remain useable by ordinary users for restorecon.
>>>
>>>   
>>>       
>> I believe there is a audit rule requiring users to be able to list their 
>> roles.  Of course this only gets us part of the way.
>>     
>
> But you likely don't want them to be able to list the roles of other
> users without privilege.
>
>   
Ok, so we definitely need it for file context.



-- 



--
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:[~2005-12-07 18:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <43971CDB.1070507@redhat.com>
2005-12-07 17:48 ` libsemanage patch to make seusers world readable Stephen Smalley
2005-12-07 17:48   ` Daniel J Walsh
2005-12-07 18:00     ` Stephen Smalley
2005-12-07 18:10       ` Daniel J Walsh [this message]
2005-12-08 13:07   ` Stephen Smalley
2005-12-12 16:34     ` Stephen Smalley

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=439725A4.3050200@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=SELinux-dev@tresys.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.