Skip to contentSkip to conversation

tests/io_uring: set a filter for the io_uring ops we want to catch

PATCH New Paul Moore 1 participant 1 message Mar 17, 2023 Audit

lore
Share & tools
lore

Paul Moore

author maintainer
#0 lore raw

PATCH 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/

---
 tests/io_uring/test | 1 +
 1 file changed, 1 insertion(+)
tests/io_uring/test +1 -0
index 9eb427a..df13af0 100755
@@ -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