summaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-12-24 17:09:39 +0100
committerPaul Moore <pmoore@redhat.com>2015-12-24 17:09:39 +0100
commitea861dfd9e0e7e044a6e65fa02a14b9159b568da (patch)
tree6769298c6df0c9de8f0d0860d49e04df5e41faf1 /security/smack
parentselinux: Remove unused variable in selinux_inode_init_security (diff)
downloadlinux-ea861dfd9e0e7e044a6e65fa02a14b9159b568da.tar.xz
linux-ea861dfd9e0e7e044a6e65fa02a14b9159b568da.zip
security: Make inode argument of inode_getsecurity non-const
Make the inode argument of the inode_getsecurity hook non-const so that we can use it to revalidate invalid security labels. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'security/smack')
-rw-r--r--security/smack/smack_lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index ff81026f6ddb..f0e694bccfd4 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -1465,7 +1465,7 @@ static int smack_inode_removexattr(struct dentry *dentry, const char *name)
*
* Returns the size of the attribute or an error code
*/
-static int smack_inode_getsecurity(const struct inode *inode,
+static int smack_inode_getsecurity(struct inode *inode,
const char *name, void **buffer,
bool alloc)
{