projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: Use netlink_ns_capable to verify the permisions of netlink messages
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
drivers
/
scsi
/
scsi_netlink.c
diff --git
a/drivers/scsi/scsi_netlink.c
b/drivers/scsi/scsi_netlink.c
index fe30ea94ffe67ef4e5d355fdc9cdcb71eee9e0d7..109802f776ed71cea6857eda9ae6ccc3e0b41f80 100644
(file)
--- a/
drivers/scsi/scsi_netlink.c
+++ b/
drivers/scsi/scsi_netlink.c
@@
-77,7
+77,7
@@
scsi_nl_rcv_msg(struct sk_buff *skb)
goto next_msg;
}
goto next_msg;
}
- if (!
capable(
CAP_SYS_ADMIN)) {
+ if (!
netlink_capable(skb,
CAP_SYS_ADMIN)) {
err = -EPERM;
goto next_msg;
}
err = -EPERM;
goto next_msg;
}