audit: log AUDIT_TIME_* records only from rules
stable inclusion from stable-v5.10.110 commit a137f93ae581668d5ad384f9cbd6cc85ee5344ac bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a137f93ae581668d5ad384f9cbd6cc85ee5344ac -------------------------------- [ Upstream commit 272ceeae ] AUDIT_TIME_* events are generated when there are syscall rules present that are not related to time keeping. This will produce noisy log entries that could flood the logs and hide events we really care about. Rather than immediately produce the AUDIT_TIME_* records, store the data in the context and log it at syscall exit time respecting the filter rules. Note: This eats the audit_buffer, unlike any others in show_special(). Please see https://bugzilla.redhat.com/show_bug.cgi?id=1991919 Fixes: 7e8eda73 ("ntp: Audit NTP parameters adjustment") Fixes: 2d87a067 ("timekeeping: Audit clock adjustments") Signed-off-by: NRichard Guy Briggs <rgb@redhat.com> [PM: fixed style/whitespace issues] Signed-off-by: NPaul Moore <paul@paul-moore.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYu Liao <liaoyu15@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录