/third_party/ltp/testcases/kernel/syscalls/setresgid/ |
H A D | setresgid01.c | 36 * 2. setresgid(2) is successful for setresgid(-1, -1, nobody) 37 * 3. setresgid(2) is successful for setresgid(-1, nobody, -1) 38 * 4. setresgid(2) is successful for setresgid(nobody, -1, -1) 44 * Check existence of root and nobody user id's 95 static struct passwd nobody, root; variable 106 {&neg, &neg, &nobody.pw_gid, &root, &root, &nobody, 107 "setresgid(-1, -1, nobody)"}, 108 {&neg, &nobody.pw_gid, &neg, &root, &nobody, [all...] |
/third_party/ltp/testcases/kernel/syscalls/setgid/ |
H A D | setgid03.c | 10 * As a root sets current group id to nobody and expects success. 17 static struct passwd *nobody; variable 21 TST_EXP_PASS(SETGID(nobody->pw_gid)); in run() 23 if (getgid() != nobody->pw_gid) in run() 24 tst_res(TFAIL, "setgid failed to set gid to nobody gid"); in run() 31 nobody = SAFE_GETPWNAM("nobody"); in setup() 32 GID16_CHECK(nobody->pw_gid, setgid); in setup()
|
H A D | setgid02.c | 15 * nobody, and expect to get EPERM. 35 struct passwd *nobody = SAFE_GETPWNAM("nobody"); in setup() local 37 SAFE_SETGID(nobody->pw_gid); in setup() 38 SAFE_SETUID(nobody->pw_uid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setfsuid/ |
H A D | setfsuid01.c | 23 struct passwd *nobody; in setup() local 25 nobody = SAFE_GETPWNAM("nobody"); in setup() 26 nobody_uid = nobody->pw_uid; in setup()
|
H A D | setfsuid03.c | 25 struct passwd *nobody; in setup() local 27 nobody = SAFE_GETPWNAM("nobody"); in setup() 28 nobody_uid = nobody->pw_uid; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setfsgid/ |
H A D | setfsgid01.c | 25 struct passwd *nobody; in setup() local 27 nobody = SAFE_GETPWNAM("nobody"); in setup() 28 nobody_gid = nobody->pw_gid; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setreuid/ |
H A D | setreuid04.c | 23 struct passwd *nobody; in setup() local 26 nobody = SAFE_GETPWNAM("nobody"); in setup() 27 nobody_uid = nobody->pw_uid; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setegid/ |
H A D | setegid01.c | 21 struct passwd *nobody; in setup() local 23 nobody = SAFE_GETPWNAM("nobody"); in setup() 24 nobody_gid = nobody->pw_gid; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/swapon/ |
H A D | swapon02.c | 56 struct passwd *nobody; in setup() local 58 nobody = SAFE_GETPWNAM("nobody"); in setup() 59 nobody_uid = nobody->pw_uid; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/swapoff/ |
H A D | swapoff02.c | 80 struct passwd *nobody; in setup() local 82 nobody = SAFE_GETPWNAM("nobody"); in setup() 83 nobody_uid = nobody->pw_uid; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/mlock2/ |
H A D | mlock202.c | 34 static struct passwd *nobody; variable 40 /* 1: nobody 0: root */ 60 SAFE_SETEUID(nobody->pw_uid); in verify_mlock2() 88 nobody = SAFE_GETPWNAM("nobody"); in setup()
|
/third_party/ltp/ |
H A D | IDcheck.sh | 82 fe nobody "$passwd"; NO_NOBODY_ID=$? 87 fe nobody "$group" || fe nogroup "$group"; NO_NOBODY_GRP=$? 99 echo "nobody: $NO_NOBODY_ID" 103 echo "nobody[/nogroup] grp: $NO_NOBODY_GRP" 140 make_user_group nobody 65534 $NO_NOBODY_ID $NO_NOBODY_GRP 171 # nobody is a standard group on all distros, apart from debian based ones; 173 if ! fe "nobody" "$passwd" || ! (fe "nogroup" "$group" || fe "nobody" "$group")
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify18.c | 161 struct passwd *nobody; in setup() local 172 nobody = SAFE_GETPWNAM("nobody"); in setup() 173 SAFE_SETUID(nobody->pw_uid); in setup()
|
H A D | fanotify19.c | 146 struct passwd *nobody; in test_fanotify() local 153 nobody = SAFE_GETPWNAM("nobody"); in test_fanotify() 154 SAFE_SETEUID(nobody->pw_uid); in test_fanotify()
|
/third_party/ltp/testcases/kernel/syscalls/setregid/ |
H A D | setregid03.c | 56 struct passwd *nobody; in setup() local 59 nobody = SAFE_GETPWNAM("nobody"); in setup() 69 SAFE_SETEUID(nobody->pw_uid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/chmod/ |
H A D | chmod06.c | 106 struct passwd *nobody; in setup() local 109 nobody = SAFE_GETPWNAM("nobody"); in setup() 110 nobody_uid = nobody->pw_uid; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/clock_adjtime/ |
H A D | clock_adjtime02.c | 132 struct passwd *nobody; in verify_clock_adjtime() local 133 static const char name[] = "nobody"; in verify_clock_adjtime() 148 nobody = SAFE_GETPWNAM(name); in verify_clock_adjtime() 149 whoami = nobody->pw_uid; in verify_clock_adjtime()
|
/third_party/python/Lib/http/ |
H A D | server.py | 955 nobody = None variable 958 """Internal routine to get nobody's uid""" 959 global nobody 960 if nobody: 961 return nobody 967 nobody = pwd.getpwnam('nobody')[2] 969 nobody = 1 + max(x[2] for x in pwd.getpwall()) 970 return nobody 1169 nobody [all...] |
/third_party/ltp/testcases/kernel/fs/read_all/ |
H A D | read_all.c | 275 struct passwd *nobody; in maybe_drop_privs() local 286 nobody = SAFE_GETPWNAM("nobody"); in maybe_drop_privs() 288 TEST(setgid(nobody->pw_gid)); in maybe_drop_privs() 290 tst_brk(TBROK | TTERRNO, "Failed to use nobody gid"); in maybe_drop_privs() 292 TEST(setuid(nobody->pw_uid)); in maybe_drop_privs() 294 tst_brk(TBROK | TTERRNO, "Failed to use nobody uid"); in maybe_drop_privs() 707 "Drop privileges; switch to the nobody user."},
|
/third_party/rust/crates/nix/test/ |
H A D | test_unistd.rs | 1181 // get the UID of the "nobody" user in test_user_into_passwd() 1183 let test_username = "nobody"; in test_user_into_passwd() 1184 // "nobody" unavailable on haiku in test_user_into_passwd() 1188 let nobody = User::from_name(test_username).unwrap().unwrap(); in test_user_into_passwd() 1189 let pwd: libc::passwd = nobody.into(); in test_user_into_passwd() 1201 // get the UID of the "nobody" user in test_setfsuid() 1202 let nobody = User::from_name("nobody").unwrap().unwrap(); in test_setfsuid() 1214 let fuid = setfsuid(nobody.uid); in test_setfsuid()
|
/third_party/python/Lib/ |
H A D | smtpd.py | 10 This program generally tries to setuid `nobody', unless this flag is 858 # Become nobody 876 nobody = pwd.getpwnam('nobody')[2] variable 878 os.setuid(nobody) 880 print('Cannot setuid "nobody"; try running with -n option.', file=sys.stderr)
|
/third_party/skia/third_party/externals/microhttpd/doc/ |
H A D | texinfo.tex | 3147 % hopefully nobody will notice/care. 5130 % since nobody clobbers \vsize.)
|