summaryrefslogtreecommitdiff
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-12-24 11:09:39 -0500
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:59 +0300
commit5fec55e3dfb04e27be9cc92c0727a611398927f2 (patch)
tree0676ee60b3df66f89aea37471ce125905f83bb73 /kernel/audit.c
parentcdd6e5ac4e935e4bc7337e877843f57ea78db173 (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 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index f94484ea1b26..673b9d59f136 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1734,7 +1734,7 @@ static inline int audit_copy_fcaps(struct audit_names *name,
/* Copy inode data into an audit_names. */
void audit_copy_inode(struct audit_names *name, const struct dentry *dentry,
- const struct inode *inode)
+ struct inode *inode)
{
name->ino = inode->i_ino;
name->dev = inode->i_sb->s_dev;