Add have_seccomp_action("trap") call to check for SECCOMP_MODE_FILTER.

This commit is contained in:
Todd C. Miller
2022-05-12 15:46:53 -06:00
parent b99debf92f
commit f4cc99c063

View File

@@ -112,6 +112,9 @@ main(int argc, char *argv[])
initprogname(argc > 0 ? argv[0] : "test_ptrace");
if (!have_seccomp_action("trap"))
sudo_fatalx("SECCOMP_MODE_FILTER not available in this kernel");
while ((ch = getopt(argc, argv, "v")) != -1) {
switch (ch) {
case 'v':