diff options
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/hooks.c | 2 | ||||
-rw-r--r-- | security/selinux/nlmsgtab.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index f8110cfd80ff..f1ab71504e1d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -3249,7 +3249,7 @@ static int selinux_inode_listsecurity(struct inode *inode, char *buffer, size_t | |||
3249 | 3249 | ||
3250 | static void selinux_inode_getsecid(struct inode *inode, u32 *secid) | 3250 | static void selinux_inode_getsecid(struct inode *inode, u32 *secid) |
3251 | { | 3251 | { |
3252 | struct inode_security_struct *isec = inode_security(inode); | 3252 | struct inode_security_struct *isec = inode_security_novalidate(inode); |
3253 | *secid = isec->sid; | 3253 | *secid = isec->sid; |
3254 | } | 3254 | } |
3255 | 3255 | ||
diff --git a/security/selinux/nlmsgtab.c b/security/selinux/nlmsgtab.c index 2bbb41822d8e..8495b9368190 100644 --- a/security/selinux/nlmsgtab.c +++ b/security/selinux/nlmsgtab.c | |||
@@ -83,6 +83,7 @@ static struct nlmsg_perm nlmsg_tcpdiag_perms[] = | |||
83 | { TCPDIAG_GETSOCK, NETLINK_TCPDIAG_SOCKET__NLMSG_READ }, | 83 | { TCPDIAG_GETSOCK, NETLINK_TCPDIAG_SOCKET__NLMSG_READ }, |
84 | { DCCPDIAG_GETSOCK, NETLINK_TCPDIAG_SOCKET__NLMSG_READ }, | 84 | { DCCPDIAG_GETSOCK, NETLINK_TCPDIAG_SOCKET__NLMSG_READ }, |
85 | { SOCK_DIAG_BY_FAMILY, NETLINK_TCPDIAG_SOCKET__NLMSG_READ }, | 85 | { SOCK_DIAG_BY_FAMILY, NETLINK_TCPDIAG_SOCKET__NLMSG_READ }, |
86 | { SOCK_DESTROY, NETLINK_TCPDIAG_SOCKET__NLMSG_WRITE }, | ||
86 | }; | 87 | }; |
87 | 88 | ||
88 | static struct nlmsg_perm nlmsg_xfrm_perms[] = | 89 | static struct nlmsg_perm nlmsg_xfrm_perms[] = |