SELinux: new permission between tty audit and audit socket
PATCH 1/1 SELinux: new permission between tty audit and audit socket
New selinux permission to separate the ability to turn on tty auditing from the ability to set audit rules.
Signed-off-by Eric Paris <[email protected]>
---
security/selinux/include/av_perm_to_string.h | 1 + security/selinux/include/av_permissions.h | 1 + security/selinux/nlmsgtab.c | 2 +- 3 files changed, 3 insertions(+), 1 deletions(-)
security/selinux/include/av_perm_to_string.h +1 -0
@@ -153,6 +153,7 @@ S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_WRITE, "nlmsg_write") S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_RELAY, "nlmsg_relay") S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_READPRIV, "nlmsg_readpriv") + S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_TTY_AUDIT, "nlmsg_tty_audit") S_(SECCLASS_NETLINK_IP6FW_SOCKET, NETLINK_IP6FW_SOCKET__NLMSG_READ, "nlmsg_read") S_(SECCLASS_NETLINK_IP6FW_SOCKET, NETLINK_IP6FW_SOCKET__NLMSG_WRITE, "nlmsg_write")S_ (SECCLASS_ASSOCIATION ,ASSOCIATION__SENDTO ,"sendto" )
security/selinux/include/av_permissions.h +1 -0
@@ -708,6 +708,7 @@#define NETLINK_AUDIT_SOCKET__NLMSG_WRITE 0x00800000UL#define NETLINK_AUDIT_SOCKET__NLMSG_RELAY 0x01000000UL#define NETLINK_AUDIT_SOCKET__NLMSG_READPRIV 0x02000000UL +#define NETLINK_AUDIT_SOCKET__NLMSG_TTY_AUDIT 0x04000000UL#define NETLINK_IP6FW_SOCKET__IOCTL 0x00000001UL#define NETLINK_IP6FW_SOCKET__READ 0x00000002UL#define NETLINK_IP6FW_SOCKET__WRITE 0x00000004UL
security/selinux/nlmsgtab.c +1 -1
@@ -113,7 +113,7 @@ static struct nlmsg_perm nlmsg_audit_perms[] = { AUDIT_USER, NETLINK_AUDIT_SOCKET__NLMSG_RELAY }, { AUDIT_SIGNAL_INFO, NETLINK_AUDIT_SOCKET__NLMSG_READ }, { AUDIT_TTY_GET, NETLINK_AUDIT_SOCKET__NLMSG_READ }, - { AUDIT_TTY_SET, NETLINK_AUDIT_SOCKET__NLMSG_WRITE }, + { AUDIT_TTY_SET, NETLINK_AUDIT_SOCKET__NLMSG_TTY_AUDIT }, };
--
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 4 lines · Eric Paris
New selinux permission to separate the ability to turn on tty auditing from the ability to set audit rules.
Signed-off-by Eric Paris <[email protected]>
Acked-by Stephen Smalley <[email protected]>
Quoted 46 lines
---
security/selinux/include/av_perm_to_string.h | 1 + security/selinux/include/av_permissions.h | 1 + security/selinux/nlmsgtab.c | 2 +- 3 files changed, 3 insertions(+), 1 deletions(-)security/selinux/include/av_perm_to_string.h +1
-0@@ -153,6 +153,7 @@ S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_WRITE, "nlmsg_write") S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_RELAY, "nlmsg_relay") S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_READPRIV, "nlmsg_readpriv") + S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_TTY_AUDIT, "nlmsg_tty_audit") S_(SECCLASS_NETLINK_IP6FW_SOCKET, NETLINK_IP6FW_SOCKET__NLMSG_READ, "nlmsg_read") S_(SECCLASS_NETLINK_IP6FW_SOCKET, NETLINK_IP6FW_SOCKET__NLMSG_WRITE, "nlmsg_write")S_ (SECCLASS_ASSOCIATION ,ASSOCIATION__SENDTO ,"sendto" )security/selinux/include/av_permissions.h +1
-0@@ -708,6 +708,7 @@#define NETLINK_AUDIT_SOCKET__NLMSG_WRITE 0x00800000UL#define NETLINK_AUDIT_SOCKET__NLMSG_RELAY 0x01000000UL#define NETLINK_AUDIT_SOCKET__NLMSG_READPRIV 0x02000000UL +#define NETLINK_AUDIT_SOCKET__NLMSG_TTY_AUDIT 0x04000000UL#define NETLINK_IP6FW_SOCKET__IOCTL 0x00000001UL#define NETLINK_IP6FW_SOCKET__READ 0x00000002UL#define NETLINK_IP6FW_SOCKET__WRITE 0x00000004ULsecurity/selinux/nlmsgtab.c +1
-1@@ -113,7 +113,7 @@ static struct nlmsg_perm nlmsg_audit_perms[] = { AUDIT_USER, NETLINK_AUDIT_SOCKET__NLMSG_RELAY }, { AUDIT_SIGNAL_INFO, NETLINK_AUDIT_SOCKET__NLMSG_READ }, { AUDIT_TTY_GET, NETLINK_AUDIT_SOCKET__NLMSG_READ }, - { AUDIT_TTY_SET, NETLINK_AUDIT_SOCKET__NLMSG_WRITE }, + { AUDIT_TTY_SET, NETLINK_AUDIT_SOCKET__NLMSG_TTY_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.
James Morris
AppliedQuoted 4 lines · Eric Paris
New selinux permission to separate the ability to turn on tty auditing from the ability to set audit rules.
Signed-off-by Eric Paris <[email protected]>
Applied.
Signature · 7 lines
James Morris <[email protected]> -- 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.