Lines Matching refs:prctl
170 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST()
181 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST_SIGNAL()
197 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
208 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, NULL, 0, 0); in TEST()
212 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, NULL, NULL); in TEST()
230 ret = prctl(PR_GET_NO_NEW_PRIVS, 0, NULL, 0, 0); in TEST()
235 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
265 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
272 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
279 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
302 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
308 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
315 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
336 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
339 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
342 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, 0, 0); in TEST()
359 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
362 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0); in TEST()
365 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
368 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0); in TEST()
384 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
387 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST()
401 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
404 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST()
422 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
425 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
444 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_SIGNAL()
447 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
466 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_SIGNAL()
469 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
487 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_SIGNAL()
490 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
510 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_SIGNAL()
513 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
545 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_SIGNAL()
548 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
587 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_SIGNAL()
590 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST_SIGNAL()
617 prctl(PR_GET_SECCOMP, 0, 0, 0, 0); in kill_thread()
653 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in kill_thread_or_group()
737 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
740 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in TEST()
765 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
768 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_valid); in TEST()
783 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
786 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_zero); in TEST()
805 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
808 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_capped); in TEST()
830 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
833 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_first); in TEST()
836 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_second); in TEST()
839 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_third); in TEST()
878 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
881 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F_SIGNAL()
891 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
896 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F_SIGNAL()
930 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
932 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F()
1039 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1042 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F()
1044 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F()
1046 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F()
1048 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error); in TEST_F()
1050 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap); in TEST_F()
1052 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill); in TEST_F()
1065 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
1068 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F_SIGNAL()
1070 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F_SIGNAL()
1072 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F_SIGNAL()
1074 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error); in TEST_F_SIGNAL()
1076 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap); in TEST_F_SIGNAL()
1078 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill); in TEST_F_SIGNAL()
1094 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
1097 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F_SIGNAL()
1099 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill); in TEST_F_SIGNAL()
1101 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error); in TEST_F_SIGNAL()
1103 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F_SIGNAL()
1105 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F_SIGNAL()
1107 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap); in TEST_F_SIGNAL()
1121 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
1124 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F_SIGNAL()
1126 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F_SIGNAL()
1128 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F_SIGNAL()
1130 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error); in TEST_F_SIGNAL()
1132 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap); in TEST_F_SIGNAL()
1146 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
1149 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F_SIGNAL()
1151 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap); in TEST_F_SIGNAL()
1153 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F_SIGNAL()
1155 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F_SIGNAL()
1157 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error); in TEST_F_SIGNAL()
1171 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1174 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F()
1176 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F()
1178 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F()
1180 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error); in TEST_F()
1193 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1196 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F()
1198 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error); in TEST_F()
1200 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F()
1202 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F()
1215 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1218 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F()
1220 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F()
1222 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F()
1236 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1239 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace); in TEST_F()
1241 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow); in TEST_F()
1243 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log); in TEST_F()
1259 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
1262 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
1264 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
1279 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
1282 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
1284 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
1400 prctl(PR_SET_PTRACER, tracer_pid, 0, 0, 0); in setup_trace_fixture()
1492 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1495 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0); in TEST_F()
1508 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1511 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0); in TEST_F()
1814 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1817 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0); in TEST_F()
1829 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1832 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0); in TEST_F()
1844 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1847 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0); in TEST_F()
1875 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1879 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0); in TEST_F()
1883 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST_F()
1907 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
1911 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0); in TEST_F_SIGNAL()
1915 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST_F_SIGNAL()
1942 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
1946 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST_F()
1974 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
1978 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST_F_SIGNAL()
1997 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST()
2049 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, NULL, 0, 0); in TEST()
2063 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, 0, 0, 0); in TEST()
2148 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, NULL, 0, 0); in TEST()
2285 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in tsync_sibling()
2300 ret = prctl(PR_GET_NO_NEW_PRIVS, 0, 0, 0, 0); in tsync_sibling()
2328 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in TEST_F()
2369 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in TEST_F()
2445 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in TEST_F()
2477 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in TEST_F()
2522 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in TEST_F()
2661 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in TEST()
2665 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0); in TEST()
2800 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);