Home
last modified time | relevance | path

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

12345678910>>...14

/external/ltp/testcases/kernel/syscalls/utimensat/
Dutimensat_tests.sh38 imaccess=EPERM
364 run_test -RW root 400 "" "0 n 0 o" EPERM
367 run_test -RW root 400 "" "0 o 0 n" EPERM
370 run_test -RW root 400 "" "1 1 1 1" EPERM
388 run_test root 666 "" "0 n 0 o" EPERM
391 run_test root 666 "" "0 o 0 n" EPERM
394 run_test root 666 "" "1 1 1 1" EPERM
412 run_test "" 600 "+a" "0 n 0 o" EPERM
415 run_test "" 600 "+a" "0 o 0 n" EPERM
418 run_test "" 600 "+a" "1 1 1 1" EPERM
[all …]
/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_process_unittest.cc62 new BrokerProcess(EPERM, permissions)); in TEST()
73 BrokerProcess open_broker(EPERM, empty); in TEST()
220 TestOpenFilePerms(true /* fast_check_in_client */, EPERM); in TEST()
226 TestOpenFilePerms(false /* fast_check_in_client */, EPERM); in TEST()
256 new BrokerProcess(EPERM, permissions, fast_check_in_client)); in TestBadPaths()
267 ASSERT_EQ(can_access, -EPERM); in TestBadPaths()
269 ASSERT_EQ(fd, -EPERM); in TestBadPaths()
272 ASSERT_EQ(can_access, -EPERM); in TestBadPaths()
274 ASSERT_EQ(fd, -EPERM); in TestBadPaths()
277 ASSERT_EQ(can_access, -EPERM); in TestBadPaths()
[all …]
/external/libchrome/sandbox/linux/bpf_dsl/
Dbpf_dsl_unittest.cc123 return If(pid == 0, Error(EPERM)).Else(Error(EINVAL)); in EvaluateSyscall()
139 emulator.ExpectErrno(EPERM, FakeSyscall(__NR_getpgid, 0)); in TEST()
158 Error(EPERM)) in EvaluateSyscall()
175 EPERM, FakeSyscall(__NR_socketpair, AF_UNIX, SOCK_STREAM, 0, kFakeSV)); in TEST()
177 EPERM, FakeSyscall(__NR_socketpair, AF_UNIX, SOCK_DGRAM, 0, kFakeSV)); in TEST()
201 return If(AnyOf(ruid == 0, euid == 0, suid == 0), Error(EPERM)) in EvaluateSyscall()
217 emulator.ExpectErrno(EPERM, FakeSyscall(__NR_setresuid, 0, 5, 5)); in TEST()
218 emulator.ExpectErrno(EPERM, FakeSyscall(__NR_setresuid, 5, 0, 5)); in TEST()
219 emulator.ExpectErrno(EPERM, FakeSyscall(__NR_setresuid, 5, 5, 0)); in TEST()
241 return If(addr == kDeadBeefAddr, Error(EPERM)).Else(Allow()); in EvaluateSyscall()
[all …]
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_filesystem_test.c182 errno == EPERM) in main()
210 errno == EPERM) in main()
310 errno == EPERM) in main()
320 == EOF && errno == EPERM) in main()
329 errno == EPERM) in main()
384 == EOF && errno == EPERM) in main()
390 && errno == EPERM) in main()
408 NULL) == EOF && errno == EPERM) in main()
417 NULL) == EOF && errno == EPERM) in main()
490 if (umount("/tmp/mount/") == EOF && errno == EPERM) in main()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/
D6-1.c48 if (errno == EPERM) in set_nonroot()
57 if (errno == EPERM) in set_nonroot()
91 if (result == -1 && errno == EPERM) { in main()
99 if (errno != EPERM) { in main()
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid02.c59 &neg_one, &root.gr_gid, EPERM, &ltpgroup, &ltpgroup,
61 &neg_one, &bin.gr_gid, EPERM, &ltpgroup, &ltpgroup,
63 &root.gr_gid, &neg_one, EPERM, &ltpgroup, &ltpgroup,
65 &bin.gr_gid, &neg_one, EPERM, &ltpgroup, &ltpgroup,
67 &root.gr_gid, &bin.gr_gid, EPERM, &ltpgroup, &ltpgroup,
69 &bin.gr_gid, &root.gr_gid, EPERM, &ltpgroup, &ltpgroup,
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dbaseline_policy.cc159 return Error(EPERM); in EvaluateSyscallImpl()
167 return Error(EPERM); in EvaluateSyscallImpl()
175 return If(advice == MADV_DONTNEED, Allow()).Else(Error(EPERM)); in EvaluateSyscallImpl()
216 return Error(EPERM); in EvaluateSyscallImpl()
219 return Error(EPERM); in EvaluateSyscallImpl()
226 return Error(EPERM); in EvaluateSyscallImpl()
258 BaselinePolicy::BaselinePolicy() : BaselinePolicy(EPERM) {} in BaselinePolicy()
Dbaseline_policy_unittest.cc88 BPF_ASSERT_EQ(EPERM, errno); in BPF_TEST_C()
98 BPF_ASSERT_EQ(EPERM, fork_errno); in BPF_TEST_C()
114 BPF_ASSERT_EQ(EPERM, fork_errno); in BPF_TEST_C()
130 BPF_ASSERT_EQ(EPERM, fork_errno); in BPF_TEST_C()
187 BPF_ASSERT_EQ(EPERM, errno); in BPF_TEST_C()
194 BPF_ASSERT_EQ(EPERM, errno); in BPF_TEST_C()
202 BPF_ASSERT_EQ(EPERM, errno); in BPF_TEST_C()
322 BPF_ASSERT_EQ(EPERM, errno); in BPF_TEST_C()
333 BPF_ASSERT_EQ(EPERM, errno); in BPF_TEST_C()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/
D7-1.c40 if (errno == EPERM) { in set_nonroot()
71 if (result == -1 && errno == EPERM) { in main()
79 if (errno != EPERM) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D26-1.c39 if (errno == EPERM) { in set_nonroot()
75 if (result == -1 && errno == EPERM) { in main()
78 } else if (errno != EPERM) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
D20-1.c46 if (errno == EPERM) { in set_nonroot()
79 if (result == -1 && errno == EPERM) { in main()
82 } else if (errno != EPERM) { in main()
/external/ltp/testcases/kernel/syscalls/setegid/
Dsetegid02.c76 if (TEST_ERRNO == EPERM) { in setegid_verify()
81 EPERM, strerror(EPERM)); in setegid_verify()
/external/ltp/testcases/kernel/syscalls/stime/
Dstime02.c111 if (TEST_ERRNO == EPERM) { in main()
117 TEST_ERRNO, EPERM); in main()
121 "errno:%d", TEST_RETURN, EPERM); in main()
/external/strace/tests-mx32/
Dcaps.c74 if (capset(head, tail_data) == 0 || errno != EPERM) in main()
78 if (capset(head, tail_data) == 0 || errno != EPERM) in main()
84 errno != EPERM) in main()
/external/strace/tests-m32/
Dcaps.c74 if (capset(head, tail_data) == 0 || errno != EPERM) in main()
78 if (capset(head, tail_data) == 0 || errno != EPERM) in main()
84 errno != EPERM) in main()
/external/strace/tests/
Dcaps.c74 if (capset(head, tail_data) == 0 || errno != EPERM) in main()
78 if (capset(head, tail_data) == 0 || errno != EPERM) in main()
84 errno != EPERM) in main()
/external/linux-kselftest/tools/testing/selftests/nsfs/
Downer.c77 if (ioctl(init_uns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
83 if (ioctl(ns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
85 if (ioctl(init_uns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
/external/valgrind/helgrind/tests/
Dtc20_verifywrap.stderr.exp-solaris61 with error code 1 (EPERM: Operation not permitted)
69 with error code 1 (EPERM: Operation not permitted)
77 with error code 1 (EPERM: Operation not permitted)
92 with error code 1 (EPERM: Operation not permitted)
110 with error code 1 (EPERM: Operation not permitted)
145 with error code 1 (EPERM: Operation not permitted)
171 with error code 1 (EPERM: Operation not permitted)
198 with error code 1 (EPERM: Operation not permitted)
227 with error code 1 (EPERM: Operation not permitted)
/external/ltp/testcases/kernel/syscalls/setxattr/
Dsetxattr02.c118 .exp_err = EPERM,
126 .exp_err = EPERM,
134 .exp_err = EPERM,
142 .exp_err = EPERM,
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
D5-1.c55 } else if (error != EPERM) { in main()
57 "error (%d != %d)\n", EPERM, error); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
D3-1.c47 if (errno == EPERM) { in set_nonroot()
83 if (EPERM != errno) { in main()
D12-1.c44 if (errno == EPERM) { in set_nonroot()
75 if (EPERM == errno) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlockall/
D5-1.c40 } else if (errno == EPERM) { in main()
69 } else if (errno == EPERM) { in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dunlock.pass.cpp47 assert(e.code().value() == EPERM); in main()
59 assert(e.code().value() == EPERM); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dunlock.pass.cpp48 assert(e.code().value() == EPERM); in main()
60 assert(e.code().value() == EPERM); in main()

12345678910>>...14