forked from luck/tmp_suning_uos_patched
pohmelfs/connector: Disallow unpliviged users to configure pohmelfs
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5788c56891
commit
98a5783af0
|
@ -531,6 +531,9 @@ static void pohmelfs_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *n
|
|||
{
|
||||
int err;
|
||||
|
||||
if (!cap_raised(nsp->eff_cap, CAP_SYS_ADMIN))
|
||||
return;
|
||||
|
||||
switch (msg->flags) {
|
||||
case POHMELFS_FLAGS_ADD:
|
||||
case POHMELFS_FLAGS_DEL:
|
||||
|
|
Loading…
Reference in New Issue
Block a user