Home
last modified time | relevance | path

Searched refs:EPERM (Results 1 – 25 of 59) sorted by relevance

123

/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h89 if (errno != EPERM) { in test_membarrier_private_expedited_fail()
92 test_name, flags, EPERM, strerror(EPERM), in test_membarrier_private_expedited_fail()
146 if (errno != EPERM) { in test_membarrier_private_expedited_sync_core_fail()
149 test_name, flags, EPERM, strerror(EPERM), in test_membarrier_private_expedited_sync_core_fail()
/tools/testing/selftests/nsfs/
Downer.c78 if (ioctl(init_uns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
84 if (ioctl(ns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
86 if (ioctl(init_uns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
Dpidns.c72 if (ioctl(pns, NS_GET_PARENT) >= 0 || errno != EPERM) in main()
/tools/include/uapi/asm-generic/
Derrno-base.h5 #define EPERM 1 /* Operation not permitted */ macro
/tools/testing/selftests/landlock/
Dptrace_test.c349 EXPECT_EQ(EPERM, errno); in TEST_F()
363 EXPECT_EQ(EPERM, errno); in TEST_F()
421 EXPECT_EQ(EPERM, errno); in TEST_F()
Dbase_test.c214 ASSERT_EQ(EPERM, errno); in TEST()
216 ASSERT_EQ(EPERM, errno); in TEST()
218 ASSERT_EQ(EPERM, errno); in TEST()
/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c31 if (errno == ENOSYS || errno == EPERM) { in main()
/tools/testing/selftests/exec/
Drecursion-depth.c30 if (errno == ENOSYS || errno == EPERM) { in main()
Dnon-regular.c105 if (errno == EPERM) in setup_node()
/tools/testing/selftests/proc/
Dproc-loadavg-001.c31 if (errno == ENOSYS || errno == EPERM) in main()
Dsetns-dcache.c55 if (errno == ENOSYS || errno == EPERM) { in main()
Dsetns-sysvipc.c54 if (errno == ENOSYS || errno == EPERM) { in main()
Dproc-subset-pid.c43 if (errno == ENOSYS || errno == EPERM) { in make_private_proc()
/tools/testing/selftests/timens/
Dtimens.h57 if (errno == EPERM) in unshare_timens()
/tools/testing/selftests/bpf/prog_tests/
Dsockopt_sk.c67 if (!err || errno != EPERM) { in getsetsockopt()
181 if (errno != EPERM) { in getsetsockopt()
Dtest_lsm.c78 if (!ASSERT_EQ(errno, EPERM, "stack_mprotect")) in test_lsm()
Dringbuf.c117 ASSERT_EQ(err, -EPERM, "wr_prod_pos_err"); in test_ringbuf()
123 ASSERT_EQ(err, -EPERM, "wr_data_page_one_err"); in test_ringbuf()
Dglobal_data.c121 CHECK(!err || errno != EPERM, "test .rodata read-only map", in test_global_data_rdonly()
Dtest_local_storage.c164 if (CHECK(err != EPERM, "run_self_unlink", "err %d want EPERM\n", err)) in test_test_local_storage()
/tools/testing/selftests/kmod/
Dkmod.sh170 -EPERM)
190 echo -EPERM;;
/tools/testing/selftests/clone3/
Dclone3_cap_checkpoint_restore.c175 ASSERT_EQ(test_clone3_set_tid(_metadata, set_tid, 1), -EPERM); in TEST()
/tools/testing/selftests/capabilities/
Dtest_execve.c285 …ctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != -1 || errno != EPERM) { in do_tests()
302 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) { in do_tests()
/tools/testing/selftests/pidfd/
Dpidfd_test.c166 if (errno == EPERM) { in test_pidfd_send_signal_recycled_pid_fail()
177 if (errno == EPERM) { in test_pidfd_send_signal_recycled_pid_fail()
Dpidfd_getfd_test.c194 EXPECT_EQ(EPERM, errno); in TEST_F()
/tools/testing/selftests/bpf/progs/
Dlocal_storage.c65 return -EPERM; in BPF_PROG()

123