diff options
author | Patrick McHardy <kaber@trash.net> | 2011-03-03 13:55:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-03 13:55:40 -0500 |
commit | c53fa1ed92cd671a1dfb1e7569e9ab672612ddc6 (patch) | |
tree | 9bb539a7731af94cac0112b8f13771e4a33e0450 /net/netlink | |
parent | 06dc94b1ed05f91e246315afeb1c652d6d0dc9ab (diff) |
netlink: kill loginuid/sessionid/sid members from struct netlink_skb_parms
Netlink message processing in the kernel is synchronous these days, the
session information can be collected when needed.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 478181d53c55..97ecd923d7ee 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1362,9 +1362,6 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, | |||
1362 | 1362 | ||
1363 | NETLINK_CB(skb).pid = nlk->pid; | 1363 | NETLINK_CB(skb).pid = nlk->pid; |
1364 | NETLINK_CB(skb).dst_group = dst_group; | 1364 | NETLINK_CB(skb).dst_group = dst_group; |
1365 | NETLINK_CB(skb).loginuid = audit_get_loginuid(current); | ||
1366 | NETLINK_CB(skb).sessionid = audit_get_sessionid(current); | ||
1367 | security_task_getsecid(current, &(NETLINK_CB(skb).sid)); | ||
1368 | memcpy(NETLINK_CREDS(skb), &siocb->scm->creds, sizeof(struct ucred)); | 1365 | memcpy(NETLINK_CREDS(skb), &siocb->scm->creds, sizeof(struct ucred)); |
1369 | 1366 | ||
1370 | /* What can I do? Netlink is asynchronous, so that | 1367 | /* What can I do? Netlink is asynchronous, so that |