mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-08 17:56:11 +00:00
uvesafb/connector: Disallow unpliviged users to send netlink packets
(cherry picked from commit 30efa3f76813b17445bc5a2e443ae9731518566b) Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
85a79fc56e
commit
127f1bdba5
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user