Samhain可以监视不存在但将来可能存在的文件吗?
我希望Samhain监视文件,例如/root/somefile。该文件当前不存在,但是如果要在任何时候创建该文件,我希望得到通知。 我将此添加到samhainrc: [ReadOnly] file = /root/somefile 这导致Samhain发出以下日志条目: Oct 18 22:54:04 ip-172-31-24-115 Samhain[17123]: CRIT : [2018-10-18T22:54:04+0000] interface=<lstat>, msg=<No such file or directory>, userid=<0>, path=</root/somefile> Oct 18 22:54:04 ip-172-31-24-115 Samhain[17123]: CRIT : [2018-10-18T22:54:04+0000] msg=<POLICY MISSING>, path=</root/somefile> Oct 18 22:54:19 ip-172-31-24-115 Samhain[17157]: INFO : [2018-10-18T22:54:19+0000] msg=<Checking [ReadOnly]>, path=</root/somefile> Oct 18 22:54:19 ip-172-31-24-115 Samhain[17157]: …