summaryrefslogtreecommitdiffstats
path: root/net/netlabel/netlabel_user.h
diff options
context:
space:
mode:
authorZheng Yejian <zhengyejian1@huawei.com>2021-05-19 09:34:38 +0200
committerDavid S. Miller <davem@davemloft.net>2021-05-19 21:27:13 +0200
commitf7e0318a314f9271b0f0cdd4bfdc691976976d8c (patch)
tree419ac94117d95f32dc68660d2a56eaff1177bb34 /net/netlabel/netlabel_user.h
parentMerge branch 'intel-cleanups' (diff)
downloadlinux-f7e0318a314f9271b0f0cdd4bfdc691976976d8c.tar.xz
linux-f7e0318a314f9271b0f0cdd4bfdc691976976d8c.zip
netlabel: remove unused parameter in netlbl_netlink_auditinfo()
loginuid/sessionid/secid have been read from 'current' instead of struct netlink_skb_parms, the parameter 'skb' seems no longer needed. Fixes: c53fa1ed92cd ("netlink: kill loginuid/sessionid/sid members from struct netlink_skb_parms") Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlabel/netlabel_user.h')
-rw-r--r--net/netlabel/netlabel_user.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/netlabel/netlabel_user.h b/net/netlabel/netlabel_user.h
index b9ba8112b3c5..6190cbf94bf0 100644
--- a/net/netlabel/netlabel_user.h
+++ b/net/netlabel/netlabel_user.h
@@ -28,11 +28,9 @@
/**
* netlbl_netlink_auditinfo - Fetch the audit information from a NETLINK msg
- * @skb: the packet
* @audit_info: NetLabel audit information
*/
-static inline void netlbl_netlink_auditinfo(struct sk_buff *skb,
- struct netlbl_audit *audit_info)
+static inline void netlbl_netlink_auditinfo(struct netlbl_audit *audit_info)
{
security_task_getsecid_subj(current, &audit_info->secid);
audit_info->loginuid = audit_get_loginuid(current);