diff options
| author | Andreas Gruenbacher <[email protected]> | 2015-12-24 16:09:39 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2015-12-24 16:09:39 +0000 |
| commit | ea861dfd9e0e7e044a6e65fa02a14b9159b568da (patch) | |
| tree | 6769298c6df0c9de8f0d0860d49e04df5e41faf1 /security/selinux/hooks.c | |
| parent | selinux: Remove unused variable in selinux_inode_init_security (diff) | |
| download | kernel-ea861dfd9e0e7e044a6e65fa02a14b9159b568da.tar.gz kernel-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 <[email protected]>
Acked-by: Stephen Smalley <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
| -rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 714acadc027e..2e40c9c4e12c 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -3108,7 +3108,7 @@ static int selinux_inode_removexattr(struct dentry *dentry, const char *name) * * Permission check is handled by selinux_inode_getxattr hook. */ -static int selinux_inode_getsecurity(const struct inode *inode, const char *name, void **buffer, bool alloc) +static int selinux_inode_getsecurity(struct inode *inode, const char *name, void **buffer, bool alloc) { u32 size; int error; |
