/* Check whether a task can perform a filesystem operation. */
static int superblock_has_perm(const struct cred *cred,
/* Check whether a task can perform a filesystem operation. */
static int superblock_has_perm(const struct cred *cred,
return cred_has_capability(cred, cap, opts, ns == &init_user_ns);
}
return cred_has_capability(cred, cap, opts, ns == &init_user_ns);
}
-static int selinux_quotactl(int cmds, int type, int id, struct super_block *sb)
+static int selinux_quotactl(int cmds, int type, int id, const struct super_block *sb)
{
struct task_security_struct *new_tsec;
struct rlimit *rlim, *initrlim;
{
struct task_security_struct *new_tsec;
struct rlimit *rlim, *initrlim;