tests/io_uring: set a filter for the io_uring ops we want to catch
Paul Moore
maintainerPATCH 1/1 tests/io_uring: set a filter for the io_uring ops we want to catch
Without an explicit io_uring filter in place, we might miss the io_uring operation if it happens asynchronously.
See the post below for more information, examples, etc.:
https://lore.kernel.org/linux-audit/CAHC9VhRMJq1gJPoR79AxM1JphmGtxhGMYBkd=Ptuaq3WBjX2Bw@mail.gmail.com/
Signed-off-by Paul Moore <[email protected]>
--- tests/io_uring/test | 1 + 1 file changed, 1 insertion(+)
tests/io_uring/test +1 -0
@@ -49,6 +49,7 @@ system("auditctl -D >& /dev/null"); # set our io_uring filters system("auditctl -a exit,always -F arch=b$abi_bits -S io_uring_setup -k $key"); system("auditctl -a exit,always -F arch=b$abi_bits -S io_uring_enter -k $key"); +system("auditctl -a io_uring,always -S openat -k $key"); # run the "t1" test system("$basedir/iouring t1");
Signature · 1 line
2.40.0