From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [ patch 37/44] sudo: do not audit attempts to search /root.
Date: Fri, 08 Oct 2010 09:41:30 -0400 [thread overview]
Message-ID: <4CAF1F8A.5070004@redhat.com> (raw)
In-Reply-To: <20101008133141.GB6366@localhost.localdomain>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/08/2010 09:31 AM, Dominick Grift wrote:
> On Fri, Oct 08, 2010 at 09:13:57AM -0400, Christopher J. PeBenito wrote:
>> On 10/08/10 09:11, Christopher J. PeBenito wrote:
>>> On 10/08/10 09:07, Dominick Grift wrote:
>>>> On Fri, Oct 08, 2010 at 09:03:07AM -0400, Christopher J. PeBenito wrote:
>>>>> On 10/08/10 09:01, Dominick Grift wrote:
>>>>>> On Fri, Oct 08, 2010 at 08:59:53AM -0400, Christopher J. PeBenito
>>>>>> wrote:
>>>>>>> On 10/04/10 14:23, Dominick Grift wrote:
>>>>>>>> diff --git a/policy/modules/admin/sudo.if
>>>>>>>> b/policy/modules/admin/sudo.if
>>>>>>>> index ca36b15..da2afce 100644
>>>>>>>> --- a/policy/modules/admin/sudo.if
>>>>>>>> +++ b/policy/modules/admin/sudo.if
>>>>>>>> @@ -101,6 +101,7 @@ template(`sudo_role_template',`
>>>>>>>> files_read_usr_symlinks($1_sudo_t)
>>>>>>>> files_getattr_usr_files($1_sudo_t)
>>>>>>>> # for some PAM modules and for cwd
>>>>>>>> + files_dontaudit_list_default($1_sudo_t)
>>>>>>>> files_dontaudit_search_home($1_sudo_t)
>>>>>>>> files_list_tmp($1_sudo_t)
>>>>>>>
>>>>>>> I'm confused, /root shouldn't be default_t.
>>>>>>
>>>>>> Why not, what do you think it should be?
>>>>>
>>>>> There shouldn't be any default_t files if it can be helped. I would
>>>>> expect user_home_dir_t or admin_home_dir_t if you're on Fedora.
>>>>
>>>> This patch set is to make "refpolicy" work on minimal fedora
>>>> installations. Its not so much about trying to merge every fedora
>>>> change to refpolicy.
>>>>
>>>> However if you are interested in implementing Fedora's admin_home_t i
>>>> guess i could try that instead. That would mean that for now you can
>>>> disregard all " default" patches.
>>>>
>>>> I just was of the opinion that refpolicy is not interested in
>>>> implementing fedoras admin_home_t solution, and rather stick to
>>>> default_t for /root
>>>
>>> No, /root should definitely not be default_t. If thats what you're
>>> getting out of refpolicy head, we need to figure out why.
>>
>> To clarify, I would expect it to be user_home_dir_t in refpolicy.
>
> Any particular reason to not implement Fedoras admin_home_t solution instead?
>>
>>
>> --
>> Chris PeBenito
>> Tresys Technology, LLC
>> www.tresys.com | oss.tresys.com
>>
>>
>> _______________________________________________
>> refpolicy mailing list
>> refpolicy at oss.tresys.com
>> http://oss.tresys.com/mailman/listinfo/refpolicy
Top Reasons I like labelling /root differently then /home/dwalsh
1. Admins enter the /root directory every time they run su - or sudo.
And execute .bash type scripts.
2. If said admins execute /etc/init.d/BLAH script I get avc saying BLAH
tried to read user_home_dir_t, I can add rule saying dontaudit daemon
admin_home_t:dir search_dir_perms;
3. When someone tries to login via Xwindows as Root, they get denied,
by SELinux. We do not want X Window sessions running as root and
unconfined_t.
4. Over 70 domains in Fedora 15 need to write to user_home_dir_t
depending on boolean settings, I do not want them writing to /root
5. I can turn off genhomedircon, since I have a label for /root as
admin_home_t.
6. I want to have confined administrators tread the directories
differently.
7. Confined apps started in /root need to be treated differently.
8. Setroubleshoot plugins can treat access differently.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkyvH4oACgkQrlYvE4MpobP03QCgkqc9QhO8dd++6+wA45pqGMw/
3lYAnjKASWpaZyC3afxMLiWnDhdpwnkJ
=0O7C
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2010-10-08 13:41 UTC|newest]
Thread overview: 100+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-04 18:23 [refpolicy] [ patch 01/44] acct: unused Dominick Grift
2010-10-04 18:23 ` [refpolicy] [PATCH 1/1] Initial hadoop policy Dominick Grift
2010-10-04 18:23 ` [refpolicy] [patch 1/1] Trying to make it work on fedora minimal install Dominick Grift
2010-10-04 18:23 ` [refpolicy] [ patch 02/44] bootloader: unused Dominick Grift
2010-10-05 17:41 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 03/44] bootloader: search parent Dominick Grift
2010-10-05 17:57 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 04/44] bootloader: unused Dominick Grift
2010-10-05 17:57 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 05/44] bootloader: permission set Dominick Grift
2010-10-05 17:59 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 06/44] brctl: search parent Dominick Grift
2010-10-05 19:06 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 07/44] brctl: redundant Dominick Grift
2010-10-05 19:05 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 08/44] brctl: permission sets Dominick Grift
2010-10-05 19:05 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 09/44] consoletype: redundant Dominick Grift
2010-10-06 12:42 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 10/44] consoletype: in fedora13 /dev/console is not labeled properly early in the boot process Dominick Grift
2010-10-06 12:42 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 11/44] consoletype: needs to use system dbus file descriptors Dominick Grift
2010-10-06 12:38 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 12/44] logrotate: search parent Dominick Grift
2010-10-05 19:09 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 13/44] netutils: " Dominick Grift
2010-10-05 19:11 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 14/44] netutils: redundant Dominick Grift
2010-10-05 19:11 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 15/44] netutils: permission sets Dominick Grift
2010-10-05 19:11 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 16/44] netutils: nmap is optional Dominick Grift
2010-10-05 19:10 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 17/44] quota: search parent Dominick Grift
2010-10-06 12:34 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 18/44] quota: permission sets Dominick Grift
2010-10-06 12:34 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 19/44] rpm: redundant Dominick Grift
2010-10-06 12:59 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 20/44] rpm: (brace) expansion Dominick Grift
2010-10-06 12:59 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 21/44] rpm: search parent Dominick Grift
2010-10-06 12:59 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 22/44] rpm: redundant Dominick Grift
2010-10-06 12:59 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 23/44] rpm: various changes both from fedora and myself. rpm: ntp post install scrript want to restart ntpd Dominick Grift
2010-10-06 13:04 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 24/44] shutdown: Fedora change Dominick Grift
2010-10-07 17:09 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 25/44] shutdown: search parent Dominick Grift
2010-10-07 17:09 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 26/44] shutdown: permission sets Dominick Grift
2010-10-07 17:08 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 27/44] shutdown: search parent Dominick Grift
2010-10-07 17:08 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 28/44] shutdown: for sudo Dominick Grift
2010-10-07 17:08 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 29/44] shutdown: needs to connect to init with a unix stream socket Dominick Grift
2010-10-07 17:08 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 30/44] shutdown: search generic log directories Dominick Grift
2010-10-07 17:07 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 31/44] su: do not audit attempts to search /root Dominick Grift
2010-10-08 12:51 ` Christopher J. PeBenito
2010-10-08 13:21 ` Dominick Grift
2010-10-04 18:23 ` [refpolicy] [ patch 32/44] su: wants to read inits keyring Dominick Grift
2010-10-08 12:45 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 33/44] su: wants to search callers keyring Dominick Grift
2010-10-08 12:51 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 34/44] su: permission sets Dominick Grift
2010-10-08 12:46 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 35/44] su: search parent Dominick Grift
2010-10-08 12:51 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 36/44] sudo: wants to get attributes of device_t filesystems Dominick Grift
2010-10-08 18:33 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 37/44] sudo: do not audit attempts to search /root Dominick Grift
2010-10-08 12:59 ` Christopher J. PeBenito
2010-10-08 13:01 ` Dominick Grift
2010-10-08 13:03 ` Christopher J. PeBenito
2010-10-08 13:07 ` Dominick Grift
2010-10-08 13:11 ` Christopher J. PeBenito
2010-10-08 13:13 ` Christopher J. PeBenito
2010-10-08 13:19 ` Daniel J Walsh
2010-10-08 13:31 ` Dominick Grift
2010-10-08 13:41 ` Daniel J Walsh [this message]
2010-10-08 13:43 ` Dominick Grift
2010-10-08 13:51 ` Daniel J Walsh
2010-10-04 18:23 ` [refpolicy] [ patch 38/44] sudo: wants to get attributes of generic pts filesystems Dominick Grift
2010-10-08 18:33 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 39/44] sudo: wants to manage keys of users besides caller Dominick Grift
2010-10-08 13:01 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 40/44] tzdata: search parent Dominick Grift
2010-10-05 19:22 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 41/44] usermanage: redundant Dominick Grift
2010-10-05 19:27 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 42/44] usermanage: search parent Dominick Grift
2010-10-05 19:27 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 43/44] usermanage: redundant Dominick Grift
2010-10-05 19:27 ` Christopher J. PeBenito
2010-10-04 18:23 ` [refpolicy] [ patch 44/44] usermanage: permission sets Dominick Grift
2010-10-05 19:27 ` Christopher J. PeBenito
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=4CAF1F8A.5070004@redhat.com \
--to=dwalsh@redhat.com \
--cc=refpolicy@oss.tresys.com \
/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.