|
@@ -549,7 +549,7 @@ static int ioctl_fsfreeze(struct file *filp)
|
|
|
{
|
|
|
struct super_block *sb = file_inode(filp)->i_sb;
|
|
|
|
|
|
- if (!capable(CAP_SYS_ADMIN))
|
|
|
+ if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN))
|
|
|
return -EPERM;
|
|
|
|
|
|
/* If filesystem doesn't support freeze feature, return. */
|
|
@@ -566,7 +566,7 @@ static int ioctl_fsthaw(struct file *filp)
|
|
|
{
|
|
|
struct super_block *sb = file_inode(filp)->i_sb;
|
|
|
|
|
|
- if (!capable(CAP_SYS_ADMIN))
|
|
|
+ if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN))
|
|
|
return -EPERM;
|
|
|
|
|
|
/* Thaw */
|