Home
last modified time | relevance | path

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

12

/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.c66 setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid() argument
75 if (setreuid(ruid, euid) < 0) { in setresuid()
84 if (seteuid(euid) < 0) { in setresuid()
86 error("seteuid %u: %.100s", euid, strerror(errno)); in setresuid()
Dbsd-misc.c81 int seteuid(uid_t euid) in seteuid() argument
83 return (setreuid(-1, euid)); in seteuid()
/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/toybox/toys/other/
Dnsenter.c87 static void handle_r(int euid, int egid) in handle_r() argument
96 write_ugid_map("/proc/self/uid_map", euid); in handle_r()
119 int euid = geteuid(), egid = getegid(); in unshare_main() local
128 if (test_r()) handle_r(euid, egid); in unshare_main()
/external/toybox/toys/posix/
Did.c89 uid_t uid = getuid(), euid = geteuid(); in do_id() local
97 uid = euid = pw->pw_uid; in do_id()
103 pw = xgetpwuid(i ? uid : euid); in do_id()
114 if (uid != euid) { in do_id()
115 pw = xgetpwuid(euid); in do_id()
/external/selinux/policycoreutils/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/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/toybox/
Dmain.c103 uid_t uid = getuid(), euid = geteuid(); in toy_init() local
106 if (uid != euid) { in toy_init()
107 if (!setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root in toy_init()
108 else euid = uid; in toy_init()
113 if ((which->flags & TOYFLAG_NEEDROOT) && euid) { in toy_init()
/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 …]
/external/e2fsprogs/misc/
Duuidd.c64 uid_t euid; in create_daemon() local
83 euid = geteuid(); in create_daemon()
84 if (setreuid(euid, euid) < 0) in create_daemon()
/external/kernel-headers/original/uapi/linux/
Dcn_proc.h92 __u32 euid; member
/external/ppp/pppd/
Doptions.c420 uid_t euid; local
425 euid = geteuid();
432 if (check_prot && seteuid(euid) == -1)
1545 uid_t euid; local
1547 euid = geteuid();
1556 if (!privileged_option && seteuid(euid) == -1)
/external/openssh/
Dssh-agent.c1017 uid_t euid; in after_select() local
1034 if (getpeereid(sock, &euid, &egid) < 0) { in after_select()
1040 if ((euid != 0) && (getuid() != euid)) { in after_select()
1043 (u_int) euid, (u_int) getuid()); in after_select()
/external/google-breakpad/src/third_party/lss/
Dlinux_syscall_support.h3202 uid_t *euid, in LSS_NAME()
3204 return LSS_NAME(getresuid)(ruid, euid, suid); in LSS_NAME()
3231 LSS_INLINE int LSS_NAME(setresuid32)(uid_t ruid, uid_t euid, uid_t suid) { in LSS_NAME()
3232 return LSS_NAME(setresuid)(ruid, euid, suid); in LSS_NAME()
3323 uid_t *euid, in LSS_NAME()
3326 if ((rc = LSS_NAME(_getresuid32)(ruid, euid, suid)) < 0 && in LSS_NAME()
3328 if ((ruid == NULL) || (euid == NULL) || (suid == NULL)) { in LSS_NAME()
3332 *ruid = *euid = *suid = 0; in LSS_NAME()
3333 rc = LSS_NAME(getresuid)(ruid, euid, suid); in LSS_NAME()
3379 LSS_INLINE int LSS_NAME(setresuid32)(uid_t ruid, uid_t euid, uid_t suid) { in LSS_NAME()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc296 PRE_SYSCALL(getresuid)(void *ruid, void *euid, void *suid) {}
298 POST_SYSCALL(getresuid)(long res, void *ruid, void *euid, void *suid) {
301 if (euid) POST_WRITE(euid, sizeof(unsigned));
345 PRE_SYSCALL(setreuid)(long ruid, long euid) {}
347 POST_SYSCALL(setreuid)(long res, long ruid, long euid) {}
353 PRE_SYSCALL(setresuid)(long ruid, long euid, long suid) {}
355 POST_SYSCALL(setresuid)(long res, long ruid, long euid, long suid) {}
1475 PRE_SYSCALL(setreuid16)(long ruid, long euid) {}
1477 POST_SYSCALL(setreuid16)(long res, long ruid, long euid) {}
1483 PRE_SYSCALL(setresuid16)(long ruid, long euid, long suid) {}
[all …]
/external/iputils/
Dping_common.c62 uid_t euid; variable
129 euid = geteuid(); in limit_capabilities()
175 if (seteuid(on ? euid : getuid())) { in modify_capability()
Darping.c99 static uid_t euid; variable
201 euid = geteuid(); in limit_capabilities()
228 if (setuid(on ? euid : getuid())) { in modify_capability_raw()
/external/selinux/sepolgen/tests/
Daudit.txt2 …bf9132f8 a2=4c56cff4 a3=0 items=0 ppid=8131 pid=8132 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
5 …bf910a48 a2=4c56cff4 a3=0 items=0 ppid=8132 pid=8133 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
8 …bf910a48 a2=4c56cff4 a3=0 items=0 ppid=8132 pid=8134 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
11 …bfc0ba38 a2=4c56cff4 a3=0 items=0 ppid=8131 pid=8144 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
14 …bfc0b188 a2=4c56cff4 a3=0 items=0 ppid=8144 pid=8145 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
17 …bfc0b188 a2=4c56cff4 a3=0 items=0 ppid=8144 pid=8146 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
20 …bfc0a6c8 a2=4c56cff4 a3=0 items=0 ppid=8131 pid=8144 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
23 …bfc0a0b8 a2=4c56cff4 a3=0 items=0 ppid=8151 pid=8152 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
26 …bfc09c78 a2=4c56cff4 a3=0 items=0 ppid=8151 pid=8153 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
29 …bfc09be8 a2=4c56cff4 a3=0 items=0 ppid=8131 pid=8144 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg…
[all …]
/external/iputils/ninfod/
Dninfod.c503 static uid_t euid; variable
548 euid = geteuid(); in limit_capabilities()
/external/libcap-ng/libcap-ng-0.7/
DChangeLog10 - In netcap and pscap, ensure euid is initialized

12