|
@@ -38,7 +38,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|
|
unsigned int oldflags;
|
|
|
unsigned int jflag;
|
|
|
|
|
|
- if (!is_owner_or_cap(inode))
|
|
|
+ if (!inode_owner_or_capable(inode))
|
|
|
return -EACCES;
|
|
|
|
|
|
if (get_user(flags, (int __user *) arg))
|
|
@@ -146,7 +146,7 @@ flags_out:
|
|
|
__u32 generation;
|
|
|
int err;
|
|
|
|
|
|
- if (!is_owner_or_cap(inode))
|
|
|
+ if (!inode_owner_or_capable(inode))
|
|
|
return -EPERM;
|
|
|
|
|
|
err = mnt_want_write(filp->f_path.mnt);
|
|
@@ -298,7 +298,7 @@ mext_out:
|
|
|
case EXT4_IOC_MIGRATE:
|
|
|
{
|
|
|
int err;
|
|
|
- if (!is_owner_or_cap(inode))
|
|
|
+ if (!inode_owner_or_capable(inode))
|
|
|
return -EACCES;
|
|
|
|
|
|
err = mnt_want_write(filp->f_path.mnt);
|
|
@@ -320,7 +320,7 @@ mext_out:
|
|
|
case EXT4_IOC_ALLOC_DA_BLKS:
|
|
|
{
|
|
|
int err;
|
|
|
- if (!is_owner_or_cap(inode))
|
|
|
+ if (!inode_owner_or_capable(inode))
|
|
|
return -EACCES;
|
|
|
|
|
|
err = mnt_want_write(filp->f_path.mnt);
|