From: Ian Pilcher <arequipeno@gmail.com>
To: selinux@vger.kernel.org
Subject: Re: Failed to resolve typeattributeset statement
Date: Wed, 2 Oct 2019 18:19:50 -0500 [thread overview]
Message-ID: <c3676f35-40ff-0ace-2e9a-6e9a0bfa2ffa@gmail.com> (raw)
In-Reply-To: <7fb2cb6d-69c2-1471-bb9c-0abc52130e17@gmail.com>
On 10/2/19 6:15 PM, Ian Pilcher wrote:
> type=AVC msg=audit(1570051321.409:1773): avc: denied { getattr } for
> pid=3682 comm="sudo" path="/usr/bin/systemctl" dev="dm-0" ino=12586503
> scontext=system_u:system_r:denatc_sudo_t:s0
> tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file
> permissive=0
>
> I would have expected this to be simple. Add the following to my
> policy:
>
> require {
> type systemctl_exec_t;
> }
>
> allow denatc_sudo_t systemctl_exec_t:file { getattr };
And it is simple ... if one uses the correct type:
systemd_systemctl_exec_t
Sorry for the noise!
--
========================================================================
Ian Pilcher arequipeno@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================
prev parent reply other threads:[~2019-10-02 23:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-02 23:15 Failed to resolve typeattributeset statement Ian Pilcher
2019-10-02 23:19 ` Ian Pilcher [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=c3676f35-40ff-0ace-2e9a-6e9a0bfa2ffa@gmail.com \
--to=arequipeno@gmail.com \
--cc=selinux@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).