Skip to content

Commit

Permalink
uvesafb/connector: Disallow unpliviged users to send netlink packets
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Philipp Reisner authored and David S. Miller committed Oct 2, 2009
1 parent 98a5783 commit cc44578
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/uvesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cc44578

Please sign in to comment.