selinux: remove pointless cast in selinux_inode_setsecurity()

security_context_to_sid() expects a const char* argument, so there's
no point in casting away the const qualifier of value.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>
This commit is contained in:
Rasmus Villemoes 2015-10-21 17:44:26 -04:00 committed by Paul Moore
parent 44be2f65d9
commit 20ba96aeeb
1 changed files with 1 additions and 1 deletions

View File

@ -3163,7 +3163,7 @@ static int selinux_inode_setsecurity(struct inode *inode, const char *name,
if (!value || !size)
return -EACCES;
rc = security_context_to_sid((void *)value, size, &newsid, GFP_KERNEL);
rc = security_context_to_sid(value, size, &newsid, GFP_KERNEL);
if (rc)
return rc;