USER_AVC vs USER_MAC_POLICY_LOAD ?
Hi,
Lately dbus has taken to sending this again:
localhost dbus: Can't send to audit system: USER_AVC avc: received policyload notice (seqno=2) : exe="?" (sauid=81, hostname=?, addr=?, terminal=?)
This is clearly not an AVC - which is an access control decision. This is a policy load - something entirely different. The audit system wants to have 1 type = 1 meaning. We need to be able to differentiate information flow decisions from everything else.
I will be releasing an update to the audit system this week. I can add USER_MAC_POLICY_LOAD type to libaudit.h if that would help solve the problem. This does beg the question, though, do we really want these events being recorded? If so, I think we should use an appropriate type and not USER_AVC.
Thanks,
-Steve
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 13 lines · Steve Grubb
Hi,
Lately dbus has taken to sending this again:
localhost dbus: Can't send to audit system:
USER_AVCavc: received policyload notice (seqno=2) : exe="?" (sauid=81, hostname=?, addr=?, terminal=?)This is clearly not an AVC - which is an access control decision. This is a policy load - something entirely different. The audit system wants to have 1 type = 1 meaning. We need to be able to differentiate information flow decisions from everything else.
Quoted 4 lines
I will be releasing an update to the audit system this week. I can add
USER_MAC_POLICY_LOADtype tolibaudit.hif that would help solve the problem. This does beg the question, though, do we really want these events being recorded? If so, I think we should use an appropriate type and notUSER_AVC.
I think it is useful to record these events, as it shows that a given userspace object manager (application) has received notification of a new policy and is thus now enforcing that new policy.
Using a separate type makes sense to me. I think the current use of a single type is just a historical result of the fact that the userspace AVC was created before we had such message typing in the kernel AVC. But it may require a change/extension to the libselinux callback interface - there isn't a way to convey such type information presently I think.
However, isn't there a separate issue with regard to the above dbus message - the "Can't send to audit system" part? That suggests that the unprivileged dbus is still trying to generate audit messages? Or that something else is going wrong when it tries to audit?
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 1 line · On Wednesday 26 March 2008 09:26:48 Stephen Smalley wrote:
Using a separate type makes sense to me.
OK, in the next audit release, there will be a new type:
#define AUDIT_USER_MAC_POLICY_LOAD 2310
Quoted 3 lines
But it may require a change/extension to the libselinux callback interface - there isn't a way to convey such type information presently I think.
Hmm...I haven't checked lately either.
Quoted 2 lines
However, isn't there a separate issue with regard to the above dbus message - the "Can't send to audit system" part?
Right, I thought about altering the message so we didn't go down that path. :)
-Steve
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.