Home
last modified time | relevance | path

Searched refs:euid (Results 1 – 25 of 77) sorted by relevance

1234

/external/mtools/
Dprivileges.c75 static uid_t ruid, euid; variable
97 if(euid == 0) { in Setuid()
101 setresuid(ruid, uid, euid); in Setuid()
116 Setuid(euid); in reclaim_privs()
131 if(euid == 0) { in destroy_privs()
162 euid = geteuid(); in init_privs()
168 if(euid != ruid) { in init_privs()
177 if(euid != ruid) { in init_privs()
180 if(euid == 0 && ruid != 0) { in init_privs()
Dmtools.c82 int euid; in main() local
90 euid = geteuid(); in main()
99 sprintf(command, "a.out %d", euid); in main()
/external/openssh/openbsd-compat/
Dbsd-getpeereid.c28 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
35 *euid = cred.uid; in getpeereid()
47 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
53 if ((*euid = ucred_geteuid(ucred)) == -1) in getpeereid()
64 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
66 *euid = geteuid(); in getpeereid()
Dbsd-setres_id.c64 setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid() argument
73 if (setreuid(ruid, euid) < 0) { in setresuid()
82 if (seteuid(euid) < 0) { in setresuid()
84 error("seteuid %lu: %.100s", (u_long)euid, strerror(errno)); in setresuid()
/external/libcap-ng/libcap-ng-0.7/utils/
Dpscap.c67 int pid, ppid, uid = -1, euid = -1; in main() local
126 euid = 0; in main()
138 &id, &euid); in main()
153 if (euid == 0) { in main()
157 } else if (euid != uid) { in main()
159 p = getpwuid(euid); in main()
160 uid = euid; in main()
Dcaptest.c57 uid_t uid, euid, suid; in report() local
67 getresuid(&uid, &euid, &suid); in report()
70 if ((uid != euid && uid != 0) || in report()
75 getresuid(&uid, &euid, &suid); in report()
86 printf("User credentials uid:%d euid:%d suid:%d\n", uid, euid, suid); in report()
90 if (uid != euid || gid != egid) in report()
/external/ltp/testcases/kernel/syscalls/utils/
Dcompat_16.h35 int setresuid(uid_t ruid, uid_t euid, uid_t suid);
36 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
125 int SETREUID(void (cleanup)(void), UID_T ruid, UID_T euid) in SETREUID() argument
127 LTP_CREATE_SYSCALL(setreuid, cleanup, ruid, euid); in SETREUID()
134 int SETRESUID(void (cleanup)(void), UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument
136 LTP_CREATE_SYSCALL(setresuid, cleanup, ruid, euid, suid); in SETRESUID()
139 int GETRESUID(void (cleanup)(void), UID_T *ruid, UID_T *euid, UID_T *suid) in GETRESUID() argument
141 LTP_CREATE_SYSCALL(getresuid, cleanup, ruid, euid, suid); in GETRESUID()
Dcompat_tst_16.h32 int setresuid(uid_t ruid, uid_t euid, uid_t suid);
122 int SETREUID(UID_T ruid, UID_T euid) in SETREUID() argument
124 TST_CREATE_SYSCALL(setreuid, ruid, euid); in SETREUID()
131 int SETRESUID(UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument
133 TST_CREATE_SYSCALL(setresuid, ruid, euid, suid); in SETRESUID()
/external/ltp/testcases/kernel/syscalls/getegid/
Dgetegid02.c42 uid_t euid; in main() local
58 euid = geteuid(); in main()
59 pwent = getpwuid(euid); in main()
63 "unexpected value %d", euid); in main()
/external/python/cpython2/Misc/
Dsetuid-prog.c129 uid_t euid = geteuid(); in main() local
154 if (statb.st_uid != 0 && statb.st_uid != euid) { in main()
164 if (setreuid(euid, euid) < 0) in main()
/external/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid01.c54 static uid_t ruid, euid; /* real and effective user ids */ variable
75 euid = geteuid(); /* get effective uid */ in main()
76 UID16_CHECK(euid, setreuid, cleanup); in main()
95 TEST(SETREUID(cleanup, -1, euid)); in main()
/external/ltp/testcases/kernel/syscalls/mq_unlink/
Dmq_unlink01.c19 static uid_t euid; variable
67 euid = geteuid(); in setup()
104 if (tc->as_nobody && seteuid(euid) == -1) in do_test()
105 tst_res(TWARN | TERRNO, "seteuid back to %d failed", euid); in do_test()
/external/toybox/toys/posix/
Did.c89 uid_t uid = getuid(), euid = geteuid(); in do_id() local
102 uid = euid = pw->pw_uid; in do_id()
107 pw = xgetpwuid(FLAG(r) ? uid : euid); in do_id()
134 if (uid != euid) { in do_id()
135 pw = xgetpwuid(euid); in do_id()
/external/toybox/toys/other/
Dnsenter.c91 static void handle_r(int euid, int egid) in handle_r() argument
100 write_ugid_map("/proc/self/uid_map", euid); in handle_r()
128 int euid = geteuid(), egid = getegid(); in unshare_main() local
137 if (test_r()) handle_r(euid, egid); in unshare_main()
/external/selinux/python/audit2allow/
Dtest.log4 …1 a2=154d50 a3=92c5120 items=1 ppid=13935 pid=13944 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
6 …0 a2=b5b1e8 a3=9e58ac0 items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
8 …0 a2=b5b1e8 a3=9e58ac0 items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
10 … a2=3282ec a3=bf992a04 items=0 ppid=24423 pid=24427 auid=3267 uid=0 gid=0 euid=3267 suid=3267 fsui…
12 …0 a2=b5b1e8 a3=9e58ac0 items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
15 …a2=31fff4 a3=2008171 items=0 ppid=23762 pid=23768 auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48…
17 …0 a2=b5b1e8 a3=9e58ac0 items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
19 …0 a2=b5b1e8 a3=9e58ac0 items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
22 …a2=31fff4 a3=2008171 items=0 ppid=23762 pid=23770 auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48…
24 …800 a2=0 a3=bf973110 items=0 ppid=23765 pid=12387 auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48…
[all …]
/external/selinux/python/sepolgen/tests/test_data/
Daudit.log2 …=bfb6479c a3=bfb647dc items=0 ppid=6311 pid=6314 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 eg…
5 … a2=4db18a64 a3=bfdb2fde items=0 ppid=1 pid=6306 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
7 …33c a1=0 a2=1 a3=8aeffb8 items=0 ppid=1 pid=6306 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
9 … a1=42 a2=1c0 a3=9c0e840 items=0 ppid=1 pid=6336 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
11 … a2=bf991e3c a3=bf991e3c items=0 ppid=1 pid=6336 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
16 …000 a2=1b6 a3=8e1f9a8 items=0 ppid=6356 pid=6377 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 eg…
18 …a1=2 a2=bfa1e1e0 a3=0 items=0 ppid=6377 pid=6378 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
20 …1=0 a2=1b6 a3=85b5008 items=0 ppid=6377 pid=6378 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
22 … a2=ce8ff4 a3=85b5008 items=0 ppid=6377 pid=6378 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
27 …1=80c2 a2=180 a3=80c2 items=0 ppid=6356 pid=6377 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 eg…
[all …]
Dshort.log2 …=bfb6479c a3=bfb647dc items=0 ppid=6311 pid=6314 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 eg…
5 … a2=4db18a64 a3=bfdb2fde items=0 ppid=1 pid=6306 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
7 …33c a1=0 a2=1 a3=8aeffb8 items=0 ppid=1 pid=6306 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
9 … a1=42 a2=1c0 a3=9c0e840 items=0 ppid=1 pid=6336 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
11 … a2=bf991e3c a3=bf991e3c items=0 ppid=1 pid=6336 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=…
Dhttpd.log3154 …22b8b0 a2=9222138 a3=11 items=0 ppid=8102 pid=8103 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81…
3159 …b65830 a2=4d18494 a3=1f items=0 ppid=8102 pid=8103 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81…
3163 …cd505b a2=1 a3=b7fb1688 items=0 ppid=6659 pid=8102 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81…
3166 … a1=bfcd5408 a2=1 a3=13 items=0 ppid=6659 pid=8102 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81…
3185 …d2a8 a1=8000 a2=0 a3=8000 items=0 ppid=8085 pid=8094 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
3187 …1 a2=bf7ffd68 a3=bf7ffda8 items=0 ppid=8085 pid=8094 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
3202 …830 a2=99b6ab8 a3=99b6638 items=0 ppid=8108 pid=8111 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
3209 … a1=0 a2=bfb0bbbc a3=9b16fe0 items=0 ppid=1 pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
3213 …057e86 a1=41 a2=0 a3=9b16fe0 items=0 ppid=1 pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
3215 … a1=bfb0bc48 a2=4 a3=9b16fe0 items=0 ppid=1 pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
[all …]
/external/minijail/examples/
Ddrop_privs.cpp27 uid_t ruid, euid, suid; in log_resugid() local
29 getresuid(&ruid, &euid, &suid); in log_resugid()
32 LOG(INFO) << "ruid " << ruid << " euid " << euid << " suid " << suid; in log_resugid()
/external/toybox/
Dmain.c123 uid_t uid = getuid(), euid = geteuid(); in toy_init() local
126 if (uid != euid) { in toy_init()
127 if (setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root in toy_init()
128 euid = uid; in toy_init()
134 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()
/external/libcap/goapps/web/
Dweb.go55 euid := syscall.Geteuid()
59 if uid != euid || gid != egid {
60 log.Fatalf("go runtime is setuid uids:(%d vs %d), gids(%d vs %d)", uid, euid, gid, egid)
/external/minijail/test/
Dlibminijail_test.cpp98 uid_t ruid, euid, suid; in log_resugid() local
100 getresuid(&ruid, &euid, &suid); in log_resugid()
103 LOG(INFO) << "ruid " << ruid << " euid " << euid << " suid " << suid; in log_resugid()
/external/ltp/testcases/kernel/syscalls/sched_setscheduler/
Dsched_setscheduler03.c110 uid_t ruid, euid, suid; in setup() local
142 SAFE_GETRESUID(&ruid, &euid, &suid); in setup()
143 if (euid != nobody_uid) in setup()
/external/ltp/testcases/kernel/syscalls/mq_open/
Dmq_open01.c21 static uid_t euid; variable
153 SAFE_SETEUID(euid); in unlink_queue()
172 SAFE_SETEUID(euid); in restore_max_queues()
194 euid = geteuid(); in setup()
/external/ltp/lib/
Dtst_safe_macros.c99 uid_t ruid, uid_t euid) in safe_setreuid() argument
103 rval = setreuid(ruid, euid); in safe_setreuid()
107 (long)ruid, (long)euid); in safe_setreuid()

1234