diff options
author | csjp <csjp@FreeBSD.org> | 2008-08-11 20:14:56 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2008-08-11 20:14:56 +0000 |
commit | 4c2ecbd8bd352951ebc3b34777ff61daf6b3f219 (patch) | |
tree | 96289b2cf29152067315d3235555266dfb61f87a /sys/security | |
parent | 7e1207323cbd8d55de7238e54cc4ff8990432529 (diff) | |
download | FreeBSD-src-4c2ecbd8bd352951ebc3b34777ff61daf6b3f219.zip FreeBSD-src-4c2ecbd8bd352951ebc3b34777ff61daf6b3f219.tar.gz |
Make sure we check the preselection masks present for all audit pipes.
It is possible that the audit pipe(s) have different preselection configs
then the global preselection mask.
Spotted by: Vincenzo Iozzo
MFC after: 2 weeks
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/audit/audit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index 795b2a5..737c693 100644 --- a/sys/security/audit/audit.c +++ b/sys/security/audit/audit.c @@ -609,7 +609,8 @@ audit_proc_coredump(struct thread *td, char *path, int errcode) else sorf = AU_PRS_SUCCESS; class = au_event_class(AUE_CORE); - if (au_preselect(AUE_CORE, class, aumask, sorf) == 0) + if (au_preselect(AUE_CORE, class, aumask, sorf) == 0 && + audit_pipe_preselect(auid, AUE_CORE, class, sorf, 0) == 0) return; /* * If we are interested in seeing this audit record, allocate it. |