mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Add have_seccomp_action("trap") call to check for SECCOMP_MODE_FILTER.
This commit is contained in:
@@ -112,6 +112,9 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
initprogname(argc > 0 ? argv[0] : "test_ptrace");
|
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) {
|
while ((ch = getopt(argc, argv, "v")) != -1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'v':
|
case 'v':
|
||||||
|
Reference in New Issue
Block a user