All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Edenfield <kutulu@kutulu.org>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>
Cc: SELinux Mailing List <selinux@tycho.nsa.gov>
Subject: Re: refpolicy patch: samba enhancements
Date: Fri, 18 Jul 2008 14:37:15 -0400	[thread overview]
Message-ID: <4880E2DB.7040202@kutulu.org> (raw)
In-Reply-To: <1216405172.21191.179.camel@gorn>

Christopher J. PeBenito wrote:
> On Fri, 2008-07-18 at 13:31 -0400, Mike Edenfield wrote:
>> Christopher J. PeBenito wrote:
>>> On Mon, 2008-07-14 at 16:31 -0400, Mike Edenfield wrote:
>>>> +tunable_policy(`samba_create_home_dirs',`
>>>> +    unprivuser_home_filetrans_home_dir(smbd_t)
>>>> +    unprivuser_manage_home_dirs(smbd_t)
>>> I think we want this to be unprivuser_create_home_dirs(), which would
>>> need to be added.
>> That was my first instinct but I didn't see one already present, so I 
>> just copied what I found for oddjob_mkhomedir.
>>
>> I'll define a new interface for this -- I assume that's probably a 
>> separate patch?
> 
> No, its fine to include it in this one.
> 
>>   And I should convert the sysadm role and oddjob type to 
>> use the interface?
> 
> Sysadm is fine as is, since it already has broad powers for managing
> users.  I'm not sure about the oddjob usage; you'd have to check the
> programs features to see if it does other things in addition to just
> creating the dirs.
> 

The reason I mentioned it is because both sysadm and oddjob use the same 
two interfaces I put in the samba patch.  In fact, I don't see anywhere 
in the ref policy that manage_home_dirs is ever used without the 
filetrans interface right before it.  This leads me to suggest that I 
just add a call to home_filetrans_home_dir inside manage_home_dirs, 
since it seems to be almost a prerequisite anyway.

I just checked oddjob -- it calls a series of related interfaces, which 
sysadm and the samba policy already also called, so perhaps all of these 
can be put into a "create_home_directories" interface and simplify the 
policy in three places:

unprivuser_home_filetrans_home_dir(oddjob_mkhomedir_t)
unprivuser_manage_home_content_dirs(oddjob_mkhomedir_t)
unprivuser_manage_home_content_files(oddjob_mkhomedir_t)
unprivuser_manage_home_dirs(oddjob_mkhomedir_t)
unprivuser_home_dir_filetrans_home_content(oddjob_mkhomedir_t,notdevfile_class_set)

--Mike


--
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:[~2008-07-18 18:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-14 20:31 refpolicy patch: samba enhancements Mike Edenfield
2008-07-18 14:59 ` Christopher J. PeBenito
2008-07-18 17:31   ` Mike Edenfield
2008-07-18 18:19     ` Christopher J. PeBenito
2008-07-18 18:37       ` Mike Edenfield [this message]
2008-07-18 19:08       ` Daniel J Walsh
2008-07-18 17:42 ` Daniel J Walsh
2008-07-18 18:14   ` Christopher J. PeBenito
2008-07-18 18:29     ` Mike Edenfield
2008-07-18 18:59     ` Daniel J Walsh
2008-07-18 18:24   ` Mike Edenfield

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=4880E2DB.7040202@kutulu.org \
    --to=kutulu@kutulu.org \
    --cc=cpebenito@tresys.com \
    --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.