mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Smack: Handle CGROUP2 in the same way that CGROUP
The new file system CGROUP2 isn't actually handled by smack. This changes makes Smack treat equally CGROUP and CGROUP2 items. Signed-off-by: José Bollo <[email protected]> Signed-off-by: Casey Schaufler <[email protected]>
This commit is contained in:
parent
a02633e9b1
commit
58c442f34c
1 changed files with 2 additions and 0 deletions
|
|
@ -3431,6 +3431,7 @@ static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode)
|
|||
if (opt_dentry->d_parent == opt_dentry) {
|
||||
switch (sbp->s_magic) {
|
||||
case CGROUP_SUPER_MAGIC:
|
||||
case CGROUP2_SUPER_MAGIC:
|
||||
/*
|
||||
* The cgroup filesystem is never mounted,
|
||||
* so there's no opportunity to set the mount
|
||||
|
|
@ -3474,6 +3475,7 @@ static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode)
|
|||
switch (sbp->s_magic) {
|
||||
case SMACK_MAGIC:
|
||||
case CGROUP_SUPER_MAGIC:
|
||||
case CGROUP2_SUPER_MAGIC:
|
||||
/*
|
||||
* Casey says that it's a little embarrassing
|
||||
* that the smack file system doesn't do
|
||||
|
|
|
|||
Loading…
Reference in a new issue