mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
netlink: kill eff_cap from struct netlink_skb_parms
Netlink message processing in the kernel is synchronous these days, capabilities can be checked directly in security_netlink_recv() from the current process. Signed-off-by: Patrick McHardy <[email protected]> Reviewed-by: James Morris <[email protected]> [chrisw: update to include pohmelfs and uvesafb] Signed-off-by: Chris Wright <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
63f9742516
commit
01a16b21d6
7 changed files with 5 additions and 13 deletions
|
|
@ -73,7 +73,7 @@ static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *ns
|
|||
struct uvesafb_task *utask;
|
||||
struct uvesafb_ktask *task;
|
||||
|
||||
if (!cap_raised(nsp->eff_cap, CAP_SYS_ADMIN))
|
||||
if (!cap_raised(current_cap(), CAP_SYS_ADMIN))
|
||||
return;
|
||||
|
||||
if (msg->seq >= UVESAFB_TASKS_MAX)
|
||||
|
|
|
|||
Loading…
Reference in a new issue