]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: remove pointless cast in selinux_inode_setsecurity()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 21 Oct 2015 21:44:26 +0000 (17:44 -0400)
committerPaul Moore <pmoore@redhat.com>
Wed, 21 Oct 2015 21:44:26 +0000 (17:44 -0400)
commit7a349abf50355aee1a09a41f5c1d1734fe8f7c9d
treeed11662ce819f1694ae34c7759e402f7782cc242
parent8f1d2c1f064b2e2314ca64866361daeee12114b1
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>
security/selinux/hooks.c