Home
last modified time | relevance | path

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

12

/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/autotest/client/site_tests/security_Minijail0/src/
Dcommon.sh16 euid=$(id -u)
17 [ "$euid" != "$1" ] && die "euid $euid != $1"
/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/toybox/toys/other/
Dnsenter.c88 static void handle_r(int euid, int egid) in handle_r() argument
97 write_ugid_map("/proc/self/uid_map", euid); in handle_r()
125 int euid = geteuid(), egid = getegid(); in unshare_main() local
134 if (test_r()) handle_r(euid, egid); in unshare_main()
/external/libchrome/sandbox/linux/services/
Dsyscall_wrappers.cc100 int sys_getresuid(uid_t* ruid, uid_t* euid, uid_t* suid) { in sys_getresuid() argument
105 res = syscall(__NR_getresuid32, ruid, euid, suid); in sys_getresuid()
107 res = syscall(__NR_getresuid, ruid, euid, suid); in sys_getresuid()
111 if (euid) MSAN_UNPOISON(euid, sizeof(*euid)); in sys_getresuid()
Dsyscall_wrappers_unittest.cc67 uid_t ruid, euid, suid; in TEST() local
69 ASSERT_EQ(0, getresuid(&ruid, &euid, &suid)); in TEST()
72 EXPECT_EQ(euid, sys_euid); in TEST()
Dcredentials.cc45 uid_t ruid, euid, suid; in GetRESIds() local
47 PCHECK(sys_getresuid(&ruid, &euid, &suid) == 0); in GetRESIds()
49 const bool uids_are_equal = (ruid == euid) && (ruid == suid); in GetRESIds()
52 if (resuid) *resuid = euid; in GetRESIds()
Dsyscall_wrappers.h63 SANDBOX_EXPORT int sys_getresuid(uid_t* ruid, uid_t* euid, uid_t* suid);
/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/minijail/examples/
Ddrop_privs.cpp26 uid_t ruid, euid, suid; in log_resugid() local
28 getresuid(&ruid, &euid, &suid); in log_resugid()
31 LOG(INFO) << "ruid " << ruid << " euid " << euid << " suid " << suid; in log_resugid()
/external/toybox/
Dmain.c106 uid_t uid = getuid(), euid = geteuid(); in toy_init() local
109 if (uid != euid) { in toy_init()
110 if (setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root in toy_init()
111 euid = uid; in toy_init()
117 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()
/external/minijail/test/
Dlibminijail_test.cpp97 uid_t ruid, euid, suid; in log_resugid() local
99 getresuid(&ruid, &euid, &suid); in log_resugid()
102 LOG(INFO) << "ruid " << ruid << " euid " << euid << " suid " << suid; in log_resugid()
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/
Dmock-archive.txt7 GET%www.msn.com%/?euid=&userGroup=W:default&PM=z:1%%[('accept-encoding', 'gzip,deflate'), ('host', …
8 GET%www.msn.com%/?euid=342%%[('accept-encoding', 'gzip,deflate'), ('host', 'www.msn.com'), ('x-requ…
/external/dbus/bus/
Dactivation-helper.c170 uid_t uid, euid; in check_permissions() local
175 euid = 0; in check_permissions()
194 euid = geteuid(); in check_permissions()
195 if (euid != 0) in check_permissions()
/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/libchrome/sandbox/linux/suid/
Dsandbox.c338 uid_t ruid, euid, suid; in DropRoot() local
339 if (getresuid(&ruid, &euid, &suid)) { in DropRoot()
/external/libchrome/sandbox/linux/bpf_dsl/
Dbpf_dsl_unittest.cc200 const Arg<uid_t> ruid(0), euid(1), suid(2); in EvaluateSyscall() local
201 return If(AnyOf(ruid == 0, euid == 0, suid == 0), Error(EPERM)) in EvaluateSyscall()
202 .ElseIf(AllOf(ruid == 1, euid == 1, suid == 1), Error(EAGAIN)) in EvaluateSyscall()
/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)

12