Lines Matching refs:seccomp
282 #ifndef seccomp
283 int seccomp(unsigned int op, unsigned int flags, void *args) in seccomp() function
835 ASSERT_EQ(0, seccomp(SECCOMP_SET_MODE_FILTER, 0, in kill_thread_or_group()
844 ASSERT_EQ(0, seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog_thread)); in kill_thread_or_group()
2123 FIXTURE_VARIANT_ADD(TRACE_syscall, seccomp) { in FIXTURE_VARIANT_ADD() argument
2322 ret = seccomp(-1, 0, &prog); in TEST()
2331 ret = seccomp(SECCOMP_SET_MODE_STRICT, -1, NULL); in TEST()
2335 ret = seccomp(SECCOMP_SET_MODE_STRICT, 0, &prog); in TEST()
2341 ret = seccomp(SECCOMP_SET_MODE_FILTER, -1, &prog); in TEST()
2345 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, NULL); in TEST()
2350 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog); in TEST()
2373 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog); in TEST()
2387 ret = seccomp(SECCOMP_SET_MODE_STRICT, 0, NULL); in TEST()
2428 ret = seccomp(SECCOMP_SET_MODE_FILTER, flag, NULL); in TEST()
2453 ret = seccomp(SECCOMP_SET_MODE_FILTER, flag, NULL); in TEST()
2464 ret = seccomp(SECCOMP_SET_MODE_FILTER, flag, NULL); in TEST()
2476 ret = seccomp(SECCOMP_SET_MODE_FILTER, flag, NULL); in TEST()
2500 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC, in TEST()
2680 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog); in TEST_F()
2720 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &self->root_prog); in TEST_F()
2735 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC, in TEST_F()
2796 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC, in TEST_F()
2828 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &self->root_prog); in TEST_F()
2844 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC, in TEST_F()
2873 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &self->root_prog); in TEST_F()
2891 ret = seccomp(SECCOMP_SET_MODE_FILTER, flags, &self->apply_prog); in TEST_F()
2938 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &self->root_prog); in TEST_F()
2946 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC, in TEST_F()
2975 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC, in TEST_F()
2998 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC, in TEST_F()
3207 ret = seccomp(SECCOMP_SET_MODE_STRICT, SECCOMP_FILTER_FLAG_LOG, in TEST_SIGNAL()
3220 ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &allow_prog); in TEST_SIGNAL()
3224 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_LOG, in TEST_SIGNAL()
3232 ret = seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_LOG, in TEST_SIGNAL()
3250 ret = seccomp(SECCOMP_GET_ACTION_AVAIL, 0, &actions[0]); in TEST()
3260 ret = seccomp(SECCOMP_GET_ACTION_AVAIL, 0, &actions[i]); in TEST()
3268 ret = seccomp(SECCOMP_GET_ACTION_AVAIL, 0, &unknown_action); in TEST()
3301 EXPECT_EQ(0, seccomp(SECCOMP_SET_MODE_FILTER, in TEST()
3303 EXPECT_EQ(0, seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog)); in TEST()
3357 return seccomp(SECCOMP_SET_MODE_FILTER, flags, &prog); in user_notif_syscall()
3399 EXPECT_EQ(seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog), 0); in TEST()
3400 EXPECT_EQ(seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog), 0); in TEST()
3401 EXPECT_EQ(seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog), 0); in TEST()
3402 EXPECT_EQ(seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog), 0); in TEST()
3808 ASSERT_EQ(seccomp(SECCOMP_GET_NOTIF_SIZES, 0, &sizes), 0); in TEST()