From: Stephen Smalley <sds@tycho.nsa.gov>
To: Laurent Bigonville <bigon@debian.org>, selinux@tycho.nsa.gov
Subject: Re: Wrong audit message type when policy is reloaded
Date: Fri, 6 Nov 2015 11:29:50 -0500 [thread overview]
Message-ID: <563CD57E.8090004@tycho.nsa.gov> (raw)
In-Reply-To: <563CD0E4.4060105@debian.org>
On 11/06/2015 11:10 AM, Laurent Bigonville wrote:
> Hi,
>
> When the policy is reloaded, systemd and dbus are sending a USER_AVC
> audit event instead of a USER_MAC_POLICY_LOAD one.
>
> Looking at an other object manager (the xserver) it uses the following
> code:
> http://cgit.freedesktop.org/xorg/xserver/tree/Xext/xselinux_hooks.c#n300
>
> Can we really link SELINUX_INFO to AUDIT_USER_MAC_POLICY_LOAD? Is there
> a better way to achieve this?
>
> An downstream bug has been opened:
> https://bugzilla.redhat.com/show_bug.cgi?id=1195330
I think when they introduced the audit support, they should have added a
new type value in libselinux for MAC_POLICY_LOAD, and then they could
have handled this cleanly in their callback functions. That is what I
would do. I guess now we have to figure out how to do so compatibly...
next prev parent reply other threads:[~2015-11-06 16:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 16:10 Wrong audit message type when policy is reloaded Laurent Bigonville
2015-11-06 16:29 ` Stephen Smalley [this message]
2015-12-10 17:53 ` Laurent Bigonville
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=563CD57E.8090004@tycho.nsa.gov \
--to=sds@tycho.nsa.gov \
--cc=bigon@debian.org \
--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.