From: Martin Orr <martin@martinorr.name>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>
Cc: SELinux List <selinux@tycho.nsa.gov>
Subject: Re: [refpolicy] Let dpkg scripts ptrace
Date: Thu, 07 Aug 2008 15:48:13 +0100 [thread overview]
Message-ID: <489B0B2D.60300@martinorr.name> (raw)
In-Reply-To: <1216389265.21191.141.camel@gorn>
On 18/07/08 14:54, Christopher J. PeBenito wrote:
> On Wed, 2008-06-25 at 17:31 +0100, Martin Orr wrote:
>> Some dpkg maintainer scripts run pidof, which needs the sys_ptrace capability.
>>
>> Mar 17 15:14:31 caligula kernel: audit(1205766871.788:13): avc: denied {
>> sys_ptrace } for pid=4214 comm="pidof" capability=19
>> scontext=system_u:system_r:dpkg_script_t:s0
>> tcontext=system_u:system_r:dpkg_script_t:s0 tclass=capability
>
> Seems odd, since the ptrace process permission is not allowed. Does it
> work without this in enforcing?
It comes from trying to stat /proc/*/exe - proc_pid_readlink always checks
ptrace access. It would indeed be strange if pidof really wanted to ptrace
anything.
Best wishes,
--
Martin Orr
--
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.
prev parent reply other threads:[~2008-08-07 14:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 16:31 [refpolicy] Let dpkg scripts ptrace Martin Orr
2008-07-18 13:54 ` Christopher J. PeBenito
2008-08-07 14:48 ` Martin Orr [this message]
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=489B0B2D.60300@martinorr.name \
--to=martin@martinorr.name \
--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.