Home
last modified time | relevance | path

Searched refs:nobody (Results 1 - 22 of 22) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/setresgid/
H A Dsetresgid01.c36 * 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 Dsetgid03.c10 * 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 Dsetgid02.c15 * 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 Dsetfsuid01.c23 struct passwd *nobody; in setup() local
25 nobody = SAFE_GETPWNAM("nobody"); in setup()
26 nobody_uid = nobody->pw_uid; in setup()
H A Dsetfsuid03.c25 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 Dsetfsgid01.c25 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 Dsetreuid04.c23 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 Dsetegid01.c21 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 Dswapon02.c56 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 Dswapoff02.c80 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 Dmlock202.c34 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 DIDcheck.sh82 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 Dfanotify18.c161 struct passwd *nobody; in setup() local
172 nobody = SAFE_GETPWNAM("nobody"); in setup()
173 SAFE_SETUID(nobody->pw_uid); in setup()
H A Dfanotify19.c146 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 Dsetregid03.c56 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 Dchmod06.c106 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 Dclock_adjtime02.c132 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 Dserver.py955 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 Dread_all.c275 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 Dtest_unistd.rs1181 // 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 Dsmtpd.py10 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 Dtexinfo.tex3147 % hopefully nobody will notice/care.
5130 % since nobody clobbers \vsize.)

Completed in 17 milliseconds