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/netlabel | |
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/netlabel')
-rw-r--r-- | net/netlabel/netlabel_user.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/netlabel/netlabel_user.h b/net/netlabel/netlabel_user.h index 6caef8b20611..f4fc4c9ad567 100644 --- a/net/netlabel/netlabel_user.h +++ b/net/netlabel/netlabel_user.h | |||
@@ -49,9 +49,9 @@ | |||
49 | static inline void netlbl_netlink_auditinfo(struct sk_buff *skb, | 49 | static inline void netlbl_netlink_auditinfo(struct sk_buff *skb, |
50 | struct netlbl_audit *audit_info) | 50 | struct netlbl_audit *audit_info) |
51 | { | 51 | { |
52 | audit_info->secid = NETLINK_CB(skb).sid; | 52 | security_task_getsecid(current, &audit_info->secid); |
53 | audit_info->loginuid = NETLINK_CB(skb).loginuid; | 53 | audit_info->loginuid = audit_get_loginuid(current); |
54 | audit_info->sessionid = NETLINK_CB(skb).sessionid; | 54 | audit_info->sessionid = audit_get_sessionid(current); |
55 | } | 55 | } |
56 | 56 | ||
57 | /* NetLabel NETLINK I/O functions */ | 57 | /* NetLabel NETLINK I/O functions */ |