diff options
author | Chris Wright <chrisw@osdl.org> | 2005-05-11 05:54:05 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-11 05:54:05 -0400 |
commit | 197c69c6afd2deb7eec44040ff533d90d26c6161 (patch) | |
tree | a44d7170fe20d6119eff6e656d39be623ed6131a /include | |
parent | 804a6a49d874841a98ebea3247ad2e672812ad6a (diff) |
Move ifdef CONFIG_AUDITSYSCALL to header
Remove code conditionally dependent on CONFIG_AUDITSYSCALL from audit.c.
Move these dependencies to audit.h with the rest.
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/audit.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index baa80760824c..58c5589b531f 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -192,7 +192,7 @@ extern void audit_inode(const char *name, const struct inode *inode); | |||
192 | /* Private API (for audit.c only) */ | 192 | /* Private API (for audit.c only) */ |
193 | extern int audit_receive_filter(int type, int pid, int uid, int seq, | 193 | extern int audit_receive_filter(int type, int pid, int uid, int seq, |
194 | void *data, uid_t loginuid); | 194 | void *data, uid_t loginuid); |
195 | extern void audit_get_stamp(struct audit_context *ctx, | 195 | extern int audit_get_stamp(struct audit_context *ctx, |
196 | struct timespec *t, unsigned int *serial); | 196 | struct timespec *t, unsigned int *serial); |
197 | extern int audit_set_loginuid(struct task_struct *task, uid_t loginuid); | 197 | extern int audit_set_loginuid(struct task_struct *task, uid_t loginuid); |
198 | extern uid_t audit_get_loginuid(struct audit_context *ctx); | 198 | extern uid_t audit_get_loginuid(struct audit_context *ctx); |
@@ -206,6 +206,8 @@ extern void audit_signal_info(int sig, struct task_struct *t); | |||
206 | #define audit_getname(n) do { ; } while (0) | 206 | #define audit_getname(n) do { ; } while (0) |
207 | #define audit_putname(n) do { ; } while (0) | 207 | #define audit_putname(n) do { ; } while (0) |
208 | #define audit_inode(n,i) do { ; } while (0) | 208 | #define audit_inode(n,i) do { ; } while (0) |
209 | #define audit_receive_filter(t,p,u,s,d,l) ({ -EOPNOTSUPP; }) | ||
210 | #define audit_get_stamp(c,t,s) ({ 0; }) | ||
209 | #define audit_get_loginuid(c) ({ -1; }) | 211 | #define audit_get_loginuid(c) ({ -1; }) |
210 | #define audit_ipc_perms(q,u,g,m) ({ 0; }) | 212 | #define audit_ipc_perms(q,u,g,m) ({ 0; }) |
211 | #define audit_signal_info(s,t) do { ; } while (0) | 213 | #define audit_signal_info(s,t) do { ; } while (0) |