the following micro-patch changes ext[23]_ioctl to return EACCES
(permission denied) instead of EPERM (operation not permitted) if
the caller is not authorized to change the flags on a file.
return -EROFS;
if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER))
- return -EPERM;
+ return -EACCES;
if (get_user(flags, (int *) arg))
return -EFAULT;
return -EROFS;
if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER))
- return -EPERM;
+ return -EACCES;
if (get_user(flags, (int *) arg))
return -EFAULT;