mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 04:47:05 +00:00
selinux: drop cast to same type
Both the lvalue scontextp and rvalue scontext are of the type char*.
Drop the redundant explicit cast not needed since commit 9a59daa03d
("SELinux: fix sleeping allocation in security_context_to_sid"), where
the type of scontext changed from const char* to char*.
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
9e2fe574c0
commit
0b3c2b3dc9
1 changed files with 1 additions and 1 deletions
|
@ -1452,7 +1452,7 @@ static int string_to_context_struct(struct policydb *pol,
|
|||
/* Parse the security context. */
|
||||
|
||||
rc = -EINVAL;
|
||||
scontextp = (char *) scontext;
|
||||
scontextp = scontext;
|
||||
|
||||
/* Extract the user. */
|
||||
p = scontextp;
|
||||
|
|
Loading…
Reference in a new issue