diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-01-31 01:57:52 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-01 23:34:39 +0200 |
commit | c8e477c649b40c1a073b7a843d89e51dc0037db7 (patch) | |
tree | 916d9b3240e1ac3524d99decf83aa9030f1bb37b /security/selinux | |
parent | Linux 6.0-rc1 (diff) | |
download | linux-c8e477c649b40c1a073b7a843d89e51dc0037db7.tar.xz linux-c8e477c649b40c1a073b7a843d89e51dc0037db7.zip |
->getprocattr(): attribute name is const char *, TYVM...
cast of ->d_name.name to char * is completely wrong - nothing is
allowed to modify its contents.
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Acked-by: Paul Moore <paul@paul-moore.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 79573504783b..c8168d19fb96 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -6327,7 +6327,7 @@ static void selinux_d_instantiate(struct dentry *dentry, struct inode *inode) } static int selinux_getprocattr(struct task_struct *p, - char *name, char **value) + const char *name, char **value) { const struct task_security_struct *__tsec; u32 sid; |