/third_party/ltp/testcases/kernel/syscalls/setregid/ |
H A D | setregid02.c | 41 &neg_one, &root_gid, EPERM, &nobody_gid, &nobody_gid, 43 &neg_one, &other_gid, EPERM, &nobody_gid, &nobody_gid, 45 &root_gid, &neg_one, EPERM, &nobody_gid, &nobody_gid, 47 &other_gid, &neg_one, EPERM, &nobody_gid, &nobody_gid, 49 &root_gid, &other_gid, EPERM, &nobody_gid, &nobody_gid, 51 &other_gid, &root_gid, EPERM, &nobody_gid, &nobody_gid,
|
/third_party/ltp/testcases/kernel/syscalls/utimensat/ |
H A D | utimensat01.c | 75 {AT_FDCWD, TEST_FILE, &tno, 0, O_RDONLY, FS_APPEND_FL, 0600, EPERM}, 76 {AT_FDCWD, TEST_FILE, &ton, 0, O_RDONLY, FS_APPEND_FL, 0600, EPERM}, 77 {AT_FDCWD, TEST_FILE, &t11, 0, O_RDONLY, FS_APPEND_FL, 0600, EPERM}, 83 {AT_FDCWD, TEST_FILE, &tno, 0, O_RDONLY, FS_IMMUTABLE_FL, 0600, EPERM}, 84 {AT_FDCWD, TEST_FILE, &ton, 0, O_RDONLY, FS_IMMUTABLE_FL, 0600, EPERM}, 85 {AT_FDCWD, TEST_FILE, &t11, 0, O_RDONLY, FS_IMMUTABLE_FL, 0600, EPERM}, 91 {AT_FDCWD, TEST_FILE, &tno, 0, O_RDONLY, FS_APPEND_FL|FS_IMMUTABLE_FL, 0600, EPERM}, 92 {AT_FDCWD, TEST_FILE, &ton, 0, O_RDONLY, FS_APPEND_FL|FS_IMMUTABLE_FL, 0600, EPERM}, 93 {AT_FDCWD, TEST_FILE, &t11, 0, O_RDONLY, FS_APPEND_FL|FS_IMMUTABLE_FL, 0600, EPERM}, 168 * Starting with 4.8.0 operations on immutable files return EPERM in update_error() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
H A D | 6-1.c | 11 * Test that sched_getparam() sets errno == EPERM if the requesting process 19 * EPERM. It is implementation defined. 47 if (errno == EPERM) in set_nonroot() 56 if (errno == EPERM) in set_nonroot() 90 if (result == -1 && errno == EPERM) { in main() 98 if (errno != EPERM) { in main() 99 perror("errno is not EPERM: The system allows a non-root" in main()
|
/third_party/ltp/testcases/kernel/syscalls/setreuid/ |
H A D | setreuid06.c | 11 * Verify that setreuid(2) syscall fails with EPERM errno when the calling 40 TST_EXP_FAIL(SETREUID(-1, other_uid), EPERM, in run() 42 TST_EXP_FAIL(SETREUID(other_uid, -1), EPERM, in run() 44 TST_EXP_FAIL(SETREUID(other_uid, other_uid), EPERM, in run() local
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/ |
H A D | 7-1.c | 11 * Test that sched_getscheduler() sets errno == EPERM when the requesting 39 if (errno == EPERM) { in set_nonroot() 70 if (result == -1 && errno == EPERM) { in main() 78 if (errno != EPERM) { in main() 79 perror("errno is not EPERM"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
H A D | 26-1.c | 11 * Test that sched_setparam() sets errno == EPERM when the requesting process 39 if (errno == EPERM) { in set_nonroot() 75 if (result == -1 && errno == EPERM) { in main() 78 } else if (errno != EPERM) { in main() 79 perror("errno is not EPERM"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/setgroups/ |
H A D | setgroups03.c | 13 * Test for EINVAL, EPERM, EFAULT errors. 17 * - setgroups() fails with EPERM if the calling process is not super-user. 39 {1, &glist2, EPERM}, 47 if (tc->exp_errno == EPERM) in verify_setgroups() 53 if (tc->exp_errno == EPERM) in verify_setgroups()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 20-1.c | 11 * Test that sched_setscheduler() sets errno == EPERM when the requesting 45 if (errno == EPERM) { in set_nonroot() 78 if (result == -1 && errno == EPERM) { in main() 81 } else if (errno != EPERM) { in main() 82 perror("errno is not EPERM"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/ |
H A D | shmctl02.c | 24 * * EPERM - attempt to delete root-owned shm 25 * * EPERM - attempt to change root-owned shm 26 * * EPERM - attempt to lock root-owned shm 27 * * EPERM - attempt to unlock root-owned shm 71 {&shm_id3, IPC_RMID, NULL, EPERM}, 72 {&shm_id3, IPC_SET, &buf, EPERM}, 73 {&shm_id3, SHM_LOCK, &buf, EPERM}, 74 {&shm_id3, SHM_UNLOCK, &buf, EPERM}
|
/third_party/ltp/testcases/kernel/syscalls/setresuid/ |
H A D | setresuid03.c | 33 {&other_uid, &neg_one, &neg_one, EPERM, &root_uid, &main_uid, 35 {&neg_one, &neg_one, &other_uid, EPERM, &root_uid, &main_uid, 37 {&neg_one, &other_uid, &neg_one, EPERM, &root_uid, &main_uid,
|
/third_party/ltp/testcases/kernel/syscalls/capset/ |
H A D | capset02.c | 18 * 4. capset() fails with errno set to EPERM if the new_Effective is 20 * 5. capset() fails with errno set to EPERM if the new_Permitted is 22 * 6. capset() fails with errno set ot EPERM if the new_Inheritable is 55 {0x20080522, 0, CAP2, CAP1, CAP1, EPERM, 0, "bad value data(when pE is not in pP)"}, 56 {0x20080522, 0, CAP1, CAP2, CAP1, EPERM, 0, "bad value data(when pP is not in old pP)"}, 57 {0x20080522, 0, CAP1, CAP1, CAP2, EPERM, 0, "bad value data(when pI is not in bounding set or old pI)"},
|
/third_party/ltp/testcases/kernel/syscalls/setxattr/ |
H A D | setxattr02.c | 9 * and set errno to EPERM. 17 * errno to EPERM 19 * return -1 and set errno to EPERM 21 * return -1 and set errno to EPERM 23 * return -1 and set errno to EPERM 98 .exp_err = EPERM, 106 .exp_err = EPERM, 114 .exp_err = EPERM, 122 .exp_err = EPERM,
|
/third_party/musl/libc-test/src/functional/ |
H A D | pthread_mutex_pi.c | 154 if (i != EPERM) in main() 155 t_error("PTHREAD_MUTEX_ERRORCHECK unlock did not return EPERM, got %s\n", strerror(i)); in main() 157 if (i != EPERM) in main() 158 t_error("PTHREAD_MUTEX_RECURSIVE unlock did not return EPERM, got %s\n", strerror(i)); in main() 161 if (i != EPERM) in main() 162 t_error("PTHREAD_MUTEX_ERRORCHECK unlock did not return EPERM, got %s\n", strerror(i)); in main() 164 if (i != EPERM) in main() 165 t_error("PTHREAD_MUTEX_RECURSIVE unlock did not return EPERM, got %s\n", strerror(i)); in main()
|
H A D | pthread_mutex.c | 151 if (i != EPERM) in main() 152 t_error("PTHREAD_MUTEX_ERRORCHECK unlock did not return EPERM, got %s\n", strerror(i)); in main() 154 if (i != EPERM) in main() 155 t_error("PTHREAD_MUTEX_RECURSIVE unlock did not return EPERM, got %s\n", strerror(i)); in main() 158 if (i != EPERM) in main() 159 t_error("PTHREAD_MUTEX_ERRORCHECK unlock did not return EPERM, got %s\n", strerror(i)); in main() 161 if (i != EPERM) in main() 162 t_error("PTHREAD_MUTEX_RECURSIVE unlock did not return EPERM, got %s\n", strerror(i)); in main()
|
/third_party/ltp/testcases/kernel/containers/utsname/ |
H A D | utsname04.c | 44 TST_EXP_PASS(errno == EPERM); in run() 48 TST_EXP_PASS(errno == EPERM); in run()
|
/third_party/ltp/testcases/kernel/syscalls/setpgid/ |
H A D | setpgid03.c | 14 * - EPERM The process specified by pid must not be a session leader. 16 * - EPERM The calling process, process specified by pid and the target 47 TST_EXP_FAIL(setpgid(child_pid, getppid()), EPERM); in run() local 49 TST_EXP_FAIL(setpgid(0, child_pid), EPERM); in run()
|
/third_party/ltp/testcases/kernel/syscalls/stime/ |
H A D | stime02.c | 10 * stime() should fail with return value -1 and set errno to EPERM. 32 "stime() returned %ld, expected -1 EPERM", TST_RET); in run() 36 if (TST_ERR == EPERM) { in run() 42 "stime(2) fails, Caller not root, expected errno:%d", EPERM); in run()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/ |
H A D | 5-1.c | 4 * The clock_getcpuclockid() function shall fail and return EPERM if the 60 } else if (error != EPERM) { in main() 62 "error (%d != %d)\n", EPERM, error); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlockall/ |
H A D | 5-1.c | 40 } else if (errno == EPERM) { in main() 69 } else if (errno == EPERM) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
H A D | 3-1.c | 10 function will fail with errno set to EPERM, unless the sending process 46 if (errno == EPERM) { in set_nonroot() 82 if (EPERM != errno) { in main() 83 printf("Test FAILED: EPERM error not received\n"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/adjtimex/ |
H A D | adjtimex02.c | 13 * - EPERM with SET_MODE as nobody 51 {.modes = SET_MODE, .exp_err = EPERM}, 78 if (tc[i].exp_err == EPERM) in verify_adjtimex() 102 if (tc[i].exp_err == EPERM) in verify_adjtimex()
|
/third_party/ltp/testcases/kernel/syscalls/sched_setaffinity/ |
H A D | sched_setaffinity01.c | 15 * 4) EPERM, if the calling process doesn't have appropriate privileges. 45 {&privileged_pid, &mask_size, &mask, EPERM}, 59 if (tc->exp_errno == EPERM) { in verify_test() 86 if (tc->exp_errno == EPERM) in verify_test()
|
/third_party/ltp/testcases/kernel/syscalls/fsetxattr/ |
H A D | fsetxattr02.c | 10 * and set errno to EPERM. 18 * errno to EPERM 20 * return -1 and set errno to EPERM 22 * return -1 and set errno to EPERM 24 * return -1 and set errno to EPERM 109 .exp_err = EPERM, 118 .exp_err = EPERM, 127 .exp_err = EPERM, 136 .exp_err = EPERM,
|
/third_party/lwip/src/core/distributed_net/ |
H A D | distributed_net_core.c | 128 set_errno(EPERM); in distributed_net_sendto() 137 set_errno(EPERM); in distributed_net_sendto() 173 set_errno(EPERM); in distributed_net_sendmsg() 182 set_errno(EPERM); in distributed_net_sendmsg()
|
/third_party/ltp/testcases/kernel/syscalls/unshare/ |
H A D | unshare02.c | 13 * - EPERM when process is missing required privileges 41 {CLONE_NEWNS, EPERM, "CLONE_NEWNS"} 48 if (tc[i].expected_error == EPERM) in run()
|