selinux: revert use of __getname() in selinux_genfs_get_sid()
Changes
1 files changed · +2 −2
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| security/selinux/hooks.c | modified | +2 | −2 | View file |
security/selinux/hooks.c
View filediff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 95d0fb2..9780196 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -1336,7 +1336,7 @@ static int selinux_genfs_get_sid(struct dentry *dentry,
struct super_block *sb = dentry->d_sb;
char *buffer, *path;
- buffer = __getname();
+ buffer = (char *)__get_free_page(GFP_KERNEL);
if (!buffer)
return -ENOMEM;
@@ -1361,7 +1361,7 @@ static int selinux_genfs_get_sid(struct dentry *dentry,
rc = 0;
}
}
- __putname(buffer);
+ free_page((unsigned long)buffer);
return rc;
}