mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
audit: add netlink audit protocol bind to check capabilities on multicast join
Register a netlink per-protocol bind fuction for audit to check userspace process capabilities before allowing a multicast group connection. Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7774d5e03f
commit
3a101b8de0
@@ -347,7 +347,12 @@ struct vfs_cap_data {
|
||||
|
||||
#define CAP_BLOCK_SUSPEND 36
|
||||
|
||||
#define CAP_LAST_CAP CAP_BLOCK_SUSPEND
|
||||
/* Allow reading the audit log via multicast netlink socket */
|
||||
|
||||
#define CAP_AUDIT_READ 37
|
||||
|
||||
|
||||
#define CAP_LAST_CAP CAP_AUDIT_READ
|
||||
|
||||
#define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP)
|
||||
|
||||
|
Reference in New Issue
Block a user