aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-06-20 11:11:05 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-06-20 11:11:05 -0400
commitae7b961b1c943367dfe179411f120d7bf8eaba89 (patch)
treed40171c26b22295e45ad7b67923442bfb513752a /include/linux
parentf7056d64ae101d910f965a2e39831f635ef7891b (diff)
AUDIT: Report lookup flags with path/inode records.
When LOOKUP_PARENT is used, the inode which results is not the inode found at the pathname. Report the flags so that this doesn't generate misleading audit records. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/audit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index b5bda24f7365..5f812e4d01e4 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -220,7 +220,7 @@ extern void audit_syscall_entry(struct task_struct *task, int arch,
220extern void audit_syscall_exit(struct task_struct *task, int failed, long return_code); 220extern void audit_syscall_exit(struct task_struct *task, int failed, long return_code);
221extern void audit_getname(const char *name); 221extern void audit_getname(const char *name);
222extern void audit_putname(const char *name); 222extern void audit_putname(const char *name);
223extern void audit_inode(const char *name, const struct inode *inode); 223extern void audit_inode(const char *name, const struct inode *inode, unsigned flags);
224 224
225 /* Private API (for audit.c only) */ 225 /* Private API (for audit.c only) */
226extern int audit_receive_filter(int type, int pid, int uid, int seq, 226extern int audit_receive_filter(int type, int pid, int uid, int seq,
@@ -243,7 +243,7 @@ extern int audit_filter_user(struct task_struct *tsk, int type);
243#define audit_syscall_exit(t,f,r) do { ; } while (0) 243#define audit_syscall_exit(t,f,r) do { ; } while (0)
244#define audit_getname(n) do { ; } while (0) 244#define audit_getname(n) do { ; } while (0)
245#define audit_putname(n) do { ; } while (0) 245#define audit_putname(n) do { ; } while (0)
246#define audit_inode(n,i) do { ; } while (0) 246#define audit_inode(n,i,f) do { ; } while (0)
247#define audit_receive_filter(t,p,u,s,d,l) ({ -EOPNOTSUPP; }) 247#define audit_receive_filter(t,p,u,s,d,l) ({ -EOPNOTSUPP; })
248#define auditsc_get_stamp(c,t,s) do { BUG(); } while (0) 248#define auditsc_get_stamp(c,t,s) do { BUG(); } while (0)
249#define audit_get_loginuid(c) ({ -1; }) 249#define audit_get_loginuid(c) ({ -1; })