Skip to content

Commit

Permalink
dm/connector: Only process connector packages from privileged processes
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 f1489cf commit 2483647
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/md/dm-log-userspace-transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp)
{
struct dm_ulog_request *tfr = (struct dm_ulog_request *)(msg + 1);

if (!cap_raised(nsp->eff_cap, CAP_SYS_ADMIN))
return;

spin_lock(&receiving_list_lock);
if (msg->len == 0)
fill_pkg(msg, NULL);
Expand Down

0 comments on commit 2483647

Please sign in to comment.