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/audit.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/audit.h')
-rw-r--r-- | include/linux/audit.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 20eba1eb0a3c..8a2d046e9f6b 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -137,7 +137,7 @@ extern void __audit_getname(struct filename *name); | |||
137 | extern void __audit_inode(struct filename *name, const struct dentry *dentry, | 137 | extern void __audit_inode(struct filename *name, const struct dentry *dentry, |
138 | unsigned int flags); | 138 | unsigned int flags); |
139 | extern void __audit_file(const struct file *); | 139 | extern void __audit_file(const struct file *); |
140 | extern void __audit_inode_child(const struct inode *parent, | 140 | extern void __audit_inode_child(struct inode *parent, |
141 | const struct dentry *dentry, | 141 | const struct dentry *dentry, |
142 | const unsigned char type); | 142 | const unsigned char type); |
143 | extern void __audit_seccomp(unsigned long syscall, long signr, int code); | 143 | extern void __audit_seccomp(unsigned long syscall, long signr, int code); |
@@ -202,7 +202,7 @@ static inline void audit_inode_parent_hidden(struct filename *name, | |||
202 | __audit_inode(name, dentry, | 202 | __audit_inode(name, dentry, |
203 | AUDIT_INODE_PARENT | AUDIT_INODE_HIDDEN); | 203 | AUDIT_INODE_PARENT | AUDIT_INODE_HIDDEN); |
204 | } | 204 | } |
205 | static inline void audit_inode_child(const struct inode *parent, | 205 | static inline void audit_inode_child(struct inode *parent, |
206 | const struct dentry *dentry, | 206 | const struct dentry *dentry, |
207 | const unsigned char type) { | 207 | const unsigned char type) { |
208 | if (unlikely(!audit_dummy_context())) | 208 | if (unlikely(!audit_dummy_context())) |
@@ -359,7 +359,7 @@ static inline void __audit_inode(struct filename *name, | |||
359 | const struct dentry *dentry, | 359 | const struct dentry *dentry, |
360 | unsigned int flags) | 360 | unsigned int flags) |
361 | { } | 361 | { } |
362 | static inline void __audit_inode_child(const struct inode *parent, | 362 | static inline void __audit_inode_child(struct inode *parent, |
363 | const struct dentry *dentry, | 363 | const struct dentry *dentry, |
364 | const unsigned char type) | 364 | const unsigned char type) |
365 | { } | 365 | { } |
@@ -373,7 +373,7 @@ static inline void audit_file(struct file *file) | |||
373 | static inline void audit_inode_parent_hidden(struct filename *name, | 373 | static inline void audit_inode_parent_hidden(struct filename *name, |
374 | const struct dentry *dentry) | 374 | const struct dentry *dentry) |
375 | { } | 375 | { } |
376 | static inline void audit_inode_child(const struct inode *parent, | 376 | static inline void audit_inode_child(struct inode *parent, |
377 | const struct dentry *dentry, | 377 | const struct dentry *dentry, |
378 | const unsigned char type) | 378 | const unsigned char type) |
379 | { } | 379 | { } |