aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lsm_hooks.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-12-24 11:09:39 -0500
committerPaul Moore <pmoore@redhat.com>2015-12-24 11:09:39 -0500
commitea861dfd9e0e7e044a6e65fa02a14b9159b568da (patch)
tree6769298c6df0c9de8f0d0860d49e04df5e41faf1 /include/linux/lsm_hooks.h
parenta44ca52ca6bd10ce588102789dde33f9fd6569cf (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 'include/linux/lsm_hooks.h')
-rw-r--r--include/linux/lsm_hooks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index ec3a6bab29de..bdd0a3a8a0e4 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -1413,7 +1413,7 @@ union security_list_options {
1413 int (*inode_removexattr)(struct dentry *dentry, const char *name); 1413 int (*inode_removexattr)(struct dentry *dentry, const char *name);
1414 int (*inode_need_killpriv)(struct dentry *dentry); 1414 int (*inode_need_killpriv)(struct dentry *dentry);
1415 int (*inode_killpriv)(struct dentry *dentry); 1415 int (*inode_killpriv)(struct dentry *dentry);
1416 int (*inode_getsecurity)(const struct inode *inode, const char *name, 1416 int (*inode_getsecurity)(struct inode *inode, const char *name,
1417 void **buffer, bool alloc); 1417 void **buffer, bool alloc);
1418 int (*inode_setsecurity)(struct inode *inode, const char *name, 1418 int (*inode_setsecurity)(struct inode *inode, const char *name,
1419 const void *value, size_t size, 1419 const void *value, size_t size,