Home
last modified time | relevance | path

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

1234

/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 %u: %.100s", 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()
Dnetcap.c63 int fd, len, euid = -1; in collect_process_info() local
114 euid = 0; in collect_process_info()
126 &id, &euid); in collect_process_info()
196 node.uid = euid; in collect_process_info()
/external/ltp/testcases/kernel/syscalls/utils/
Dcompat_16.h37 int setresuid(uid_t ruid, uid_t euid, uid_t suid);
38 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
127 int SETREUID(void (cleanup)(void), UID_T ruid, UID_T euid) in SETREUID() argument
129 LTP_CREATE_SYSCALL(setreuid, cleanup, ruid, euid); in SETREUID()
136 int SETRESUID(void (cleanup)(void), UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument
138 LTP_CREATE_SYSCALL(setresuid, cleanup, ruid, euid, suid); in SETRESUID()
141 int GETRESUID(void (cleanup)(void), UID_T *ruid, UID_T *euid, UID_T *suid) in GETRESUID() argument
143 LTP_CREATE_SYSCALL(getresuid, cleanup, ruid, euid, suid); in GETRESUID()
Dcompat_tst_16.h34 int setresuid(uid_t ruid, uid_t euid, uid_t suid);
124 int SETREUID(UID_T ruid, UID_T euid) in SETREUID() argument
126 TST_CREATE_SYSCALL(setreuid, ruid, euid); in SETREUID()
133 int SETRESUID(UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument
135 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.c32 static uid_t euid; variable
80 euid = geteuid(); in setup()
117 if (tc->as_nobody && seteuid(euid) == -1) in do_test()
118 tst_res(TWARN | TERRNO, "seteuid back to %d failed", euid); in do_test()
/external/toybox/toys/posix/
Did.c90 uid_t uid = getuid(), euid = geteuid(); in do_id() local
98 uid = euid = pw->pw_uid; in do_id()
104 pw = xgetpwuid(i ? uid : euid); in do_id()
115 if (uid != euid) { in do_id()
116 pw = xgetpwuid(euid); in do_id()
/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 …]
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 …]
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=…
/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/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/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.c124 uid_t uid = getuid(), euid = geteuid(); in toy_init() local
127 if (uid != euid) { in toy_init()
128 if (setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root in toy_init()
129 euid = uid; in toy_init()
135 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()
/external/ltp/testcases/kernel/syscalls/mq_open/
Dmq_open01.c34 static uid_t euid; variable
166 SAFE_SETEUID(euid); in unlink_queue()
185 SAFE_SETEUID(euid); in restore_max_queues()
207 euid = geteuid(); in setup()
/external/ltp/testcases/kernel/syscalls/sched_setscheduler/
Dsched_setscheduler03.c122 uid_t ruid, euid, suid; in setup() local
154 SAFE_GETRESUID(&ruid, &euid, &suid); in setup()
155 if (euid != nobody_uid) in setup()
/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/lib/
Dtst_safe_macros.c110 uid_t ruid, uid_t euid) in safe_setreuid() argument
114 rval = setreuid(ruid, euid); in safe_setreuid()
118 (long)ruid, (long)euid); in safe_setreuid()
/external/ltp/include/
Dtst_safe_macros.h108 #define SAFE_SETEUID(euid) \ argument
109 safe_seteuid(__FILE__, __LINE__, NULL, (euid))
124 uid_t ruid, uid_t euid);
126 #define SAFE_SETREUID(ruid, euid) \ argument
127 safe_setreuid(__FILE__, __LINE__, (ruid), (euid))
129 #define SAFE_GETRESUID(ruid, euid, suid) \ argument
130 safe_getresuid(__FILE__, __LINE__, NULL, (ruid), (euid), (suid))
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h77 #define __sanitizer_syscall_pre_getresuid(ruid, euid, suid) \ argument
78 __sanitizer_syscall_pre_impl_getresuid((long)(ruid), (long)(euid), \
80 #define __sanitizer_syscall_post_getresuid(res, ruid, euid, suid) \ argument
81 __sanitizer_syscall_post_impl_getresuid(res, (long)(ruid), (long)(euid), \
113 #define __sanitizer_syscall_pre_setreuid(ruid, euid) \ argument
114 __sanitizer_syscall_pre_impl_setreuid((long)(ruid), (long)(euid))
115 #define __sanitizer_syscall_post_setreuid(res, ruid, euid) \ argument
116 __sanitizer_syscall_post_impl_setreuid(res, (long)(ruid), (long)(euid))
121 #define __sanitizer_syscall_pre_setresuid(ruid, euid, suid) \ argument
122 __sanitizer_syscall_pre_impl_setresuid((long)(ruid), (long)(euid), \
[all …]

1234