我发现每当我启动一个新的 ec2 服务器时,默认规则为auditctl
是
auditctl -a never,task
制定这条规则的目的是什么?
答案1
从man auditctl
-a [list,action|action,list]
task Add a rule to the per task list. This rule list is
used only at the time a task is created -- when
fork() or clone() are called by the parent task.
When using this list, you should only use fields
that are known at task creation time, such as the
uid, gid, etc.
never No audit records will be generated. This can be used
to suppress event generation. In general, you want
suppressions at the top of the list instead of the
bottom. This is because the event triggers on the
first matching rule.
因此,这将停止fork()
生成clone()
审核日志,否则可能会导致额外的 CPU 负载以及 I/O 和磁盘使用。