From: Mike Edenfield <kutulu@kutulu.org>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>
Cc: Daniel J Walsh <dwalsh@redhat.com>,
SELinux Mailing List <selinux@tycho.nsa.gov>
Subject: Re: refpolicy patch: samba enhancements
Date: Fri, 18 Jul 2008 14:29:51 -0400 [thread overview]
Message-ID: <4880E11F.7000108@kutulu.org> (raw)
In-Reply-To: <1216404899.21191.175.camel@gorn>
Christopher J. PeBenito wrote:
> On Fri, 2008-07-18 at 13:42 -0400, Daniel J Walsh wrote:
>> Mike Edenfield wrote:
>>> I apologize if I'm not doing this right, I'm kinda new at this...
>>>
>>> I have made some changes to the SELinux policy for our intranet servers
>>> that I thought might be useful to a broader audience. Included below is
>>> a patch to the latest refpolicy. This has been tested on the Gentoo
>>> systems we have here; I don't have easy access to other SELinux systems
>>> at the moment. It does the following:
> [...]
>>> * Adds a tunable that lets samba create home directories via pam_mkhomedir
>
>> Could you do this with pam_oddjob_mkhomedir without having to add the
>> privs. I think this is a better solution.
>
> What if you don't have oddjob? It doesn't hurt to have the perms in a
> tunable. It could be put in a ifndef distro_redhat, if samba in
> fedora/rh requires pam_oddjob_mkhomedir.
If this is the preferable way for RH users to set up samba, would this
be an appropriate solution?
tunable_policy(`samba_create_home_dirs',`
ifdef(`distro_redhat', `
refpolicywarn(`Use of samba_create_home_dirs is discouraged.
Please use pam_oddjob_mkhomedir instead.')
', `
unprivuser_create_home_dirs(smbd_t)
allow smbd_t self:capability chown;
')
')
--
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:[~2008-07-18 18:27 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
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 [this message]
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=4880E11F.7000108@kutulu.org \
--to=kutulu@kutulu.org \
--cc=cpebenito@tresys.com \
--cc=dwalsh@redhat.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.