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 | d6335d77a7622a88380f3f207cc1f727f878dd21 (patch) | |
tree | 4333468b8ce63aba39de0c37ed1214f0bdb22b9f /include/linux/lsm_hooks.h | |
parent | ea861dfd9e0e7e044a6e65fa02a14b9159b568da (diff) |
security: Make inode argument of inode_getsecid non-const
Make the inode argument of the inode_getsecid 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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index bdd0a3a8a0e4..4c48227450e6 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h | |||
@@ -1420,7 +1420,7 @@ union security_list_options { | |||
1420 | int flags); | 1420 | int flags); |
1421 | int (*inode_listsecurity)(struct inode *inode, char *buffer, | 1421 | int (*inode_listsecurity)(struct inode *inode, char *buffer, |
1422 | size_t buffer_size); | 1422 | size_t buffer_size); |
1423 | void (*inode_getsecid)(const struct inode *inode, u32 *secid); | 1423 | void (*inode_getsecid)(struct inode *inode, u32 *secid); |
1424 | 1424 | ||
1425 | int (*file_permission)(struct file *file, int mask); | 1425 | int (*file_permission)(struct file *file, int mask); |
1426 | int (*file_alloc_security)(struct file *file); | 1426 | int (*file_alloc_security)(struct file *file); |