audit: set TIF_AUDIT_SYSCALL only if audit filter has been populated

There is no point going through all the audit slow path syscall entry/exit
in case the audit daemon is running, but hasn't populated the audit filter
with any rules whatsoever.

Only set TIF_AUDIT_SYSCALL in case the number of populated audit rules is
non-zero.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
4 files changed