Skip to content
Snippets Groups Projects
Commit cc44578b authored by Philipp Reisner's avatar Philipp Reisner Committed by David S. Miller
Browse files

uvesafb/connector: Disallow unpliviged users to send netlink packets


Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 98a5783a
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,9 @@ 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))
return;
if (msg->seq >= UVESAFB_TASKS_MAX)
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment