diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2008-03-01 14:56:22 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-04-18 19:52:35 -0400 |
commit | 0ce784ca729dce8c9076a6339a15530ca13212f2 (patch) | |
tree | 37efdaaa08c1a5cec7ff91be2287358f5ca79ede /net/netlink | |
parent | 2a862b32f3da5a2120043921ad301322ad526084 (diff) |
Netlink: Use generic LSM hook
Don't use SELinux exported selinux_get_task_sid symbol.
Use the generic LSM equivalent instead.
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Acked-by: James Morris <jmorris@namei.org>
Acked-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Paul Moore <paul.moore@hp.com>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 1ab0da2632e1..61fd2773a453 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -54,7 +54,6 @@ | |||
54 | #include <linux/mm.h> | 54 | #include <linux/mm.h> |
55 | #include <linux/types.h> | 55 | #include <linux/types.h> |
56 | #include <linux/audit.h> | 56 | #include <linux/audit.h> |
57 | #include <linux/selinux.h> | ||
58 | #include <linux/mutex.h> | 57 | #include <linux/mutex.h> |
59 | 58 | ||
60 | #include <net/net_namespace.h> | 59 | #include <net/net_namespace.h> |
@@ -1239,7 +1238,7 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, | |||
1239 | NETLINK_CB(skb).pid = nlk->pid; | 1238 | NETLINK_CB(skb).pid = nlk->pid; |
1240 | NETLINK_CB(skb).dst_group = dst_group; | 1239 | NETLINK_CB(skb).dst_group = dst_group; |
1241 | NETLINK_CB(skb).loginuid = audit_get_loginuid(current); | 1240 | NETLINK_CB(skb).loginuid = audit_get_loginuid(current); |
1242 | selinux_get_task_sid(current, &(NETLINK_CB(skb).sid)); | 1241 | security_task_getsecid(current, &(NETLINK_CB(skb).sid)); |
1243 | memcpy(NETLINK_CREDS(skb), &siocb->scm->creds, sizeof(struct ucred)); | 1242 | memcpy(NETLINK_CREDS(skb), &siocb->scm->creds, sizeof(struct ucred)); |
1244 | 1243 | ||
1245 | /* What can I do? Netlink is asynchronous, so that | 1244 | /* What can I do? Netlink is asynchronous, so that |