summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-10-21 17:44:26 -0400
committerPaul Moore <pmoore@redhat.com>2015-10-21 17:44:26 -0400
commit20ba96aeebd40f09a1d626913235941e290992c7 (patch)
treeed11662ce819f1694ae34c7759e402f7782cc242 /security
parent44be2f65d979291ffb2a47112449507ffe1f9726 (diff)
downloadlinux-20ba96aeebd40f09a1d626913235941e290992c7.tar.bz2
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>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 9ed1b5dbcb39..1530f661ef85 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -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;