[RHEL8,COMMIT] ve/fs: allow to mknod inside a Container

Submitted by Konstantin Khorenko on Jan. 22, 2020, 3:07 p.m.

Details

Message ID 202001221507.00MF7Fib023599@finist_co8.work.ct
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/fs/namei.c b/fs/namei.c
index 07ce37de342a..a131d90b46d4 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -3700,7 +3700,7 @@  int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
 	if (error)
 		return error;
 
-	if ((S_ISCHR(mode) || S_ISBLK(mode)) && !capable(CAP_MKNOD))
+	if ((S_ISCHR(mode) || S_ISBLK(mode)) && !ve_capable(CAP_MKNOD))
 		return -EPERM;
 
 	if (!dir->i_op->mknod)