Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

parent 98a5783a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;