test-seccomp: do not fail when already MemoryDenyWriteExecute= is enabled

This commit is contained in:
Yu Watanabe
2025-12-07 09:09:03 +09:00
parent b49a4696c4
commit 3672e24e75
+4 -1
View File
@@ -611,7 +611,10 @@ TEST(memory_deny_write_execute_shmat) {
void *p;
p = shmat(shmid, NULL, 0);
assert_se(p != MAP_FAILED);
if (p == MAP_FAILED) {
log_tests_skipped_errno(errno, "shmat() is already disabled");
_exit(EXIT_SUCCESS);
}
assert_se(shmdt(p) == 0);
p = shmat(shmid, NULL, SHM_EXEC);