/external/ltp/testcases/kernel/syscalls/nice/ |
nice04.c | 52 struct passwd *ltpuser; local 54 ltpuser = SAFE_GETPWNAM("nobody"); 55 SAFE_SETUID(ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/setegid/ |
setegid02.c | 34 static struct passwd *ltpuser; variable in typeref:struct:passwd 61 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); 63 SAFE_SETEUID(cleanup, ltpuser->pw_uid); 68 TEST(setegid(ltpuser->pw_gid)); 72 ltpuser->pw_gid);
|
/external/ltp/testcases/kernel/syscalls/setuid/ |
setuid03.c | 39 static struct passwd *ltpuser; variable in typeref:struct:passwd 79 ltpuser = getpwnam(nobody_uid); 80 if (ltpuser == NULL) 84 if (setuid(ltpuser->pw_uid) == -1) { 86 "to set the effective uid to %d", ltpuser->pw_uid);
|
setuid04.c | 45 static struct passwd *ltpuser; variable in typeref:struct:passwd 85 if (SETUID(NULL, ltpuser->pw_uid) == -1) { 88 ltpuser->pw_uid); 148 ltpuser = getpwnam(nobody_uid); 150 if (ltpuser == NULL) 154 UID16_CHECK(ltpuser->pw_uid, setuid, cleanup);
|
/external/ltp/testcases/kernel/syscalls/setgid/ |
setgid02.c | 39 static struct passwd *ltpuser; variable in typeref:struct:passwd 87 ltpuser = getpwnam(nobody_uid); 88 if (ltpuser == NULL) 92 if (setgid(ltpuser->pw_gid) == -1) { 94 "to set the effective gid to %d", ltpuser->pw_gid); 98 if (setuid(ltpuser->pw_uid) == -1) { 100 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/ipc/shmget/ |
shmget04.c | 59 struct passwd *ltpuser; variable in typeref:struct:passwd 118 ltpuser = getpwnam(nobody_uid); 119 if (setuid(ltpuser->pw_uid) == -1) { 121 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/setresgid/ |
setresgid04.c | 36 static struct passwd *ltpuser; variable in typeref:struct:passwd 69 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); 71 GID16_CHECK(ltpuser->pw_gid, "setresgid", cleanup) 78 TEST(SETRESGID(cleanup, -1, ltpuser->pw_gid, -1)); 89 if (ltpuser->pw_gid == buf.st_gid) { 94 ltpuser->pw_gid, buf.st_gid);
|
/external/ltp/testcases/kernel/syscalls/setresuid/ |
setresuid05.c | 36 static struct passwd *ltpuser; variable in typeref:struct:passwd 69 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); 71 UID16_CHECK(ltpuser->pw_uid, "setresuid", cleanup) 78 TEST(SETRESUID(cleanup, -1, ltpuser->pw_uid, -1)); 89 if (ltpuser->pw_uid == buf.st_uid) { 94 ltpuser->pw_uid, buf.st_uid);
|
/external/ltp/testcases/kernel/syscalls/setfsgid/ |
setfsgid03.c | 40 static struct passwd *ltpuser; variable in typeref:struct:passwd 90 ltpuser = getpwnam(nobody_uid); 91 if (ltpuser == NULL) 95 if (setuid(ltpuser->pw_uid) == -1) 98 ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/setfsuid/ |
setfsuid03.c | 42 static struct passwd *ltpuser; variable in typeref:struct:passwd 90 ltpuser = getpwnam(nobody_uid); 91 if (ltpuser == NULL) 95 if (setuid(ltpuser->pw_uid) == -1) 97 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/statfs/ |
statfs03.c | 65 struct passwd *ltpuser; variable in typeref:struct:passwd 135 ltpuser = getpwnam(nobody_uid); 136 if (ltpuser == NULL) 138 if (seteuid(ltpuser->pw_uid) == -1) { 140 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/chroot/ |
chroot01.c | 64 struct passwd *ltpuser; variable in typeref:struct:passwd 102 if ((ltpuser = getpwnam(nobody_uid)) == NULL) 106 SAFE_SETEUID(cleanup, ltpuser->pw_uid);
|
chroot04.c | 60 struct passwd *ltpuser; variable in typeref:struct:passwd 117 ltpuser = getpwnam(nobody_uid); 118 SAFE_SETEUID(cleanup, ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/munlockall/ |
munlockall02.c | 82 struct passwd *ltpuser; variable in typeref:struct:passwd 126 if ((ltpuser = getpwnam(nobody_uid)) == NULL) { 130 SAFE_SETEUID(NULL, ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/utimes/ |
utimes01.c | 115 struct passwd *ltpuser; local 133 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER1); 134 SAFE_CHOWN(cleanup, TESTFILE1, ltpuser->pw_uid, 135 ltpuser->pw_gid); 138 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER2); 139 SAFE_CHOWN(cleanup, TESTFILE2, ltpuser->pw_uid, 140 ltpuser->pw_gid); 147 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER1); 148 SAFE_CHOWN(cleanup, TESTFILE3, ltpuser->pw_uid, 149 ltpuser->pw_gid) [all...] |
/external/ltp/testcases/kernel/syscalls/chmod/ |
chmod03.c | 95 struct passwd *ltpuser; variable in typeref:struct:passwd 149 ltpuser = getpwnam(nobody_uid); 150 if (ltpuser == NULL) 152 SAFE_SETUID(NULL, ltpuser->pw_uid);
|
chmod04.c | 95 struct passwd *ltpuser; variable in typeref:struct:passwd 165 ltpuser = getpwnam(nobody_uid); 166 if (setuid(ltpuser->pw_uid) == -1) 167 tst_resm(TINFO | TERRNO, "setuid(%u) failed", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
fchmod03.c | 94 struct passwd *ltpuser; variable in typeref:struct:passwd 148 ltpuser = getpwnam(nobody_uid); 149 if (ltpuser == NULL) 151 SAFE_SETEUID(NULL, ltpuser->pw_uid);
|
fchmod04.c | 97 struct passwd *ltpuser; variable in typeref:struct:passwd 158 ltpuser = getpwnam(nobody_uid); 159 if (seteuid(ltpuser->pw_uid) == -1) { 161 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/iopl/ |
iopl02.c | 92 struct passwd *ltpuser; variable in typeref:struct:passwd 167 if (seteuid(ltpuser->pw_uid) == -1) { 169 "uid to %d", ltpuser->pw_uid); 190 if ((ltpuser = getpwnam(nobody_uid)) == NULL) {
|
/external/ltp/testcases/kernel/syscalls/ipc/semctl/ |
semctl02.c | 60 struct passwd *ltpuser; variable in typeref:struct:passwd 123 ltpuser = getpwnam(nobody_uid); 124 if (setuid(ltpuser->pw_uid) == -1) { 126 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/ipc/semget/ |
semget02.c | 60 struct passwd *ltpuser; variable in typeref:struct:passwd 127 ltpuser = getpwnam(nobody_uid); 128 if (seteuid(ltpuser->pw_uid) == -1) { 130 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/mkdir/ |
mkdir05.c | 45 struct passwd *ltpuser; variable in typeref:struct:passwd 118 ltpuser = getpwnam(nobody_uid); 119 if (setuid(ltpuser->pw_uid) == -1) { 121 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/reboot/ |
reboot02.c | 91 struct passwd *ltpuser; variable in typeref:struct:passwd 165 if ((ltpuser = getpwnam(nobody_uid)) == NULL) { 169 if (seteuid(ltpuser->pw_uid) == -1) { 171 "to set the effective uid to %d", ltpuser->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/sched_setparam/ |
sched_setparam05.c | 89 struct passwd *ltpuser; variable in typeref:struct:passwd 117 if ((ltpuser = getpwnam(nobody_uid)) == NULL) { 121 if (seteuid(ltpuser->pw_uid) == -1) { 124 ltpuser->pw_uid);
|