All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH v1 2/6] Remove getattr permision from ntp_admin()
Date: Tue, 14 Aug 2012 09:38:08 -0400	[thread overview]
Message-ID: <502A54C0.6080000@tresys.com> (raw)
In-Reply-To: <1344950105.2349.0.camel@d30.localdomain>

On 08/14/12 09:15, Dominick Grift wrote:
> 
> 
> On Tue, 2012-08-14 at 08:40 -0400, Christopher J. PeBenito wrote:
>> On 08/13/12 06:52, Dominick Grift wrote:
>>> There is no need for ntp_admin() to be able to get
>>> attributes of the ntpd process.
>>>
>>> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
>>> ---
>>>  ntp.if | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/ntp.if b/ntp.if
>>> index d56b635..b47bc35 100644
>>> --- a/ntp.if
>>> +++ b/ntp.if
>>> @@ -144,7 +144,7 @@ interface(`ntp_admin',`
>>>  		type ntpd_initrc_exec_t;
>>>  	')
>>>  
>>> -	allow $1 ntpd_t:process { ptrace signal_perms getattr };
>>> +	allow $1 ntpd_t:process { ptrace signal_perms };
>>>  	ps_process_pattern($1, ntpd_t)
>>>  
>>>  	init_labeled_script_domtrans($1, ntpd_initrc_exec_t)
>>  
>> I disagree, its reasonable to make sure its running in the right domain, which requires this permission to read /proc/pid/attr/current.
>>
> 
> Its already allowed with
> 
> ps_process_pattern($1, ntpd_t)
 
My mistake. Merged.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

  reply	other threads:[~2012-08-14 13:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 10:52 [refpolicy] [PATCH v1 0/6] Various fixes to the ntp policy module Dominick Grift
2012-08-13 10:52 ` [refpolicy] [PATCH v1 1/6] Introduce ntp_conf_t Dominick Grift
2012-08-13 10:52 ` [refpolicy] [PATCH v1 2/6] Remove getattr permision from ntp_admin() Dominick Grift
2012-08-14 12:40   ` Christopher J. PeBenito
2012-08-14 13:15     ` Dominick Grift
2012-08-14 13:38       ` Christopher J. PeBenito [this message]
2012-08-13 10:52 ` [refpolicy] [PATCH v1 3/6] Allow ntp_admin() to manage ntp_drift_t content Dominick Grift
2012-08-13 10:52 ` [refpolicy] [PATCH v1 4/6] List etc_t directories Dominick Grift
2012-08-13 10:52 ` [refpolicy] [PATCH v1 5/6] Use "Role allowed access." for consistency Dominick Grift
2012-08-13 10:52 ` [refpolicy] [PATCH v1 6/6] Use permissions sets for compatibility Dominick Grift
2012-08-14 13:32 ` [refpolicy] [PATCH v1 0/6] Various fixes to the ntp policy module 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=502A54C0.6080000@tresys.com \
    --to=cpebenito@tresys.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.