From: James Morris <jmorris@redhat.com>
ENOTSUPP is the wrong value, and should not be returned to userspace.
sbsec = inode->i_sb->s_security;
if (sbsec->behavior == SECURITY_FS_USE_MNTPOINT)
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
AVC_AUDIT_DATA_INIT(&ad,FS);
ad.u.fs.dentry = dentry;
struct superblock_security_struct *sbsec = inode->i_sb->s_security;
if (sbsec->behavior == SECURITY_FS_USE_MNTPOINT)
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
return dentry_has_perm(current, NULL, dentry, FILE__GETATTR);
}