diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-24 11:09:39 -0500 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-12-24 11:09:39 -0500 |
commit | ea861dfd9e0e7e044a6e65fa02a14b9159b568da (patch) | |
tree | 6769298c6df0c9de8f0d0860d49e04df5e41faf1 /security/security.c | |
parent | a44ca52ca6bd10ce588102789dde33f9fd6569cf (diff) |
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/security.c')
-rw-r--r-- | security/security.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c index 46f405ce6b0f..73514c91d87f 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -697,7 +697,7 @@ int security_inode_killpriv(struct dentry *dentry) | |||
697 | return call_int_hook(inode_killpriv, 0, dentry); | 697 | return call_int_hook(inode_killpriv, 0, dentry); |
698 | } | 698 | } |
699 | 699 | ||
700 | int security_inode_getsecurity(const struct inode *inode, const char *name, void **buffer, bool alloc) | 700 | int security_inode_getsecurity(struct inode *inode, const char *name, void **buffer, bool alloc) |
701 | { | 701 | { |
702 | if (unlikely(IS_PRIVATE(inode))) | 702 | if (unlikely(IS_PRIVATE(inode))) |
703 | return -EOPNOTSUPP; | 703 | return -EOPNOTSUPP; |