diff options
| author | Eric Paris <eparis@redhat.com> | 2013-04-16 13:08:43 -0400 |
|---|---|---|
| committer | Eric Paris <eparis@redhat.com> | 2013-04-16 17:28:49 -0400 |
| commit | 62062cf8a3a99a933efdac549da380f230dbe982 (patch) | |
| tree | 8da676d774d02c3c8f0093e7f2586719072f522f /include/linux | |
| parent | 34c474de7b4bd451396d67647ac728b0433379a9 (diff) | |
audit: allow checking the type of audit message in the user filter
When userspace sends messages to the audit system it includes a type.
We want to be able to filter messages based on that type without have to
do the all or nothing option currently available on the
AUDIT_FILTER_TYPE filter list. Instead we should be able to use the
AUDIT_FILTER_USER filter list and just use the message type as one part
of the matching decision.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/audit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 8f92e1dea966..b26d7f121ac5 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
| @@ -438,7 +438,7 @@ static inline void audit_log_secctx(struct audit_buffer *ab, u32 secid) | |||
| 438 | extern int audit_update_lsm_rules(void); | 438 | extern int audit_update_lsm_rules(void); |
| 439 | 439 | ||
| 440 | /* Private API (for audit.c only) */ | 440 | /* Private API (for audit.c only) */ |
| 441 | extern int audit_filter_user(void); | 441 | extern int audit_filter_user(int type); |
| 442 | extern int audit_filter_type(int type); | 442 | extern int audit_filter_type(int type); |
| 443 | extern int audit_receive_filter(int type, int pid, int seq, | 443 | extern int audit_receive_filter(int type, int pid, int seq, |
| 444 | void *data, size_t datasz, kuid_t loginuid, | 444 | void *data, size_t datasz, kuid_t loginuid, |
