mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 07:38:10 +00:00
AUDIT: Fix AVC_USER message passing.
The original AVC_USER message wasn't consolidated with the new range of user messages. The attached patch fixes the kernel so the old messages work again. Signed-off-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
011161051b
commit
05474106a4
1 changed files with 2 additions and 0 deletions
|
@ -354,6 +354,7 @@ static int audit_netlink_ok(kernel_cap_t eff_cap, u16 msg_type)
|
||||||
if (!cap_raised(eff_cap, CAP_AUDIT_CONTROL))
|
if (!cap_raised(eff_cap, CAP_AUDIT_CONTROL))
|
||||||
err = -EPERM;
|
err = -EPERM;
|
||||||
break;
|
break;
|
||||||
|
case AUDIT_USER:
|
||||||
case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG:
|
case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG:
|
||||||
if (!cap_raised(eff_cap, CAP_AUDIT_WRITE))
|
if (!cap_raised(eff_cap, CAP_AUDIT_WRITE))
|
||||||
err = -EPERM;
|
err = -EPERM;
|
||||||
|
@ -432,6 +433,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
||||||
audit_set_backlog_limit(status_get->backlog_limit,
|
audit_set_backlog_limit(status_get->backlog_limit,
|
||||||
loginuid);
|
loginuid);
|
||||||
break;
|
break;
|
||||||
|
case AUDIT_USER:
|
||||||
case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG:
|
case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG:
|
||||||
ab = audit_log_start(NULL, msg_type);
|
ab = audit_log_start(NULL, msg_type);
|
||||||
if (!ab)
|
if (!ab)
|
||||||
|
|
Loading…
Add table
Reference in a new issue