Home
last modified time | relevance | path

Searched refs:setuid (Results 1 - 25 of 70) sorted by relevance

123

/third_party/node/lib/internal/bootstrap/switches/
H A Ddoes_own_process_state.js19 process.setuid = wrapped.setuid;
48 setuid: _setuid,
102 setuid: wrapIdSetter('User', _setuid),
H A Ddoes_not_own_process_state.js19 process.setuid = unavailable('process.setuid()');
/third_party/ntfs-3g/libfuse-lite/
H A Dmount_util.c74 setuid(geteuid()); in fuse_mnt_add_mount()
127 setuid(geteuid()); in fuse_mnt_umount()
318 if (setuid(geteuid())) in fuse_mnt_add_mount()
319 fprintf(stderr, "%s: failed to setuid : %s\n", progname, in fuse_mnt_add_mount()
368 if (setuid(geteuid())) in fuse_mnt_umount()
369 fprintf(stderr, "%s: failed to setuid : %s\n", progname, in fuse_mnt_umount()
H A Dmount.c108 FUSE_OPT_KEY("setuid", KEY_KERN_OPT),
226 int setuid; member
235 SOLARIS_MOUNT_OPT("suid", setuid, 1),
238 SOLARIS_MOUNT_OPT("setuid", setuid, 1),
644 * or nodevices; there is no way for the user to specify setuid + in fuse_kern_mount()
651 && !smo.nosetuid && !smo.setuid)) { in fuse_kern_mount()
655 * Defaults; if neither nodevices|devices,nosetuid|setuid has in fuse_kern_mount()
663 if (!smo.nosetuid && !smo.setuid) in fuse_kern_mount()
/third_party/cups-filters/backend/
H A Dcups-brf.c48 if (setuid(0)) { in main()
87 if (setuid(pw->pw_uid)) { in main()
/third_party/libfuse/lib/
H A Dmount_util.c114 if(setuid(geteuid()) == -1) { in add_mount()
115 fprintf(stderr, "%s: setuid: %s\n", progname, strerror(errno)); in add_mount()
173 if(setuid(geteuid()) == -1) { in exec_umount()
174 fprintf(stderr, "%s: setuid: %s\n", progname, strerror(errno)); in exec_umount()
245 if(setuid(geteuid()) == -1) { in remove_mount()
246 fprintf(stderr, "%s: setuid: %s\n", progname, strerror(errno)); in remove_mount()
/third_party/musl/src/unistd/
H A Dsetuid.c5 int setuid(uid_t uid) in setuid() function
/third_party/ltp/testcases/kernel/security/smack/
H A Dsmack_notroot.c23 setuid(1); in main()
/third_party/ltp/testcases/kernel/syscalls/setuid/
H A Dsetuid01.c10 * Verify that setuid(2) returns 0 and effective uid has
25 UID16_CHECK(uid, setuid); in verify_setuid()
27 TST_EXP_PASS(SETUID(uid), "setuid(%d)", uid); in verify_setuid()
H A Dsetuid04.c8 * Check if setuid behaves correctly with file permissions. The test
9 * creates a file as ROOT with permissions 0644, does a setuid and then
62 UID16_CHECK(uid, setuid); in setup()
68 "setuid() failed to set the effective uid to %d", uid); in setup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/kill/
H A D3-1.c26 if (setuid(1)) { in main()
27 perror("setuid"); in main()
H A D2-2.c58 if (setuid(1)) { in main()
59 perror("setuid"); in main()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dsetuid.c22 * @tc.desc : Call the setuid method to set the process uid
28 int result = setuid(uid); in setuid_0100()
30 t_error("%s setuid error get result is %d are not 0\n", __func__, result); in setuid_0100()
33 t_error("%s setuid failed", __func__); in setuid_0100()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
H A D5-1.c42 if (setuid(pwd->pw_uid)) { in main()
43 perror("setuid"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
H A D3-1.c45 if (setuid(pw->pw_uid) != 0) { in set_nonroot()
H A D12-1.c41 /* setuid will change uid, euid */ in set_nonroot()
42 if (setuid(pw->pw_uid) != 0) { in set_nonroot()
H A D9-1.c48 if (!getpwuid(uid) && !setuid(uid)) in reset_uid()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/
H A D6-1.c55 if (setuid(pw->pw_uid) != 0) { in set_nonroot()
60 perror("setuid failed"); in set_nonroot()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D20-1.c44 if (setuid(pw->pw_uid) != 0) { in set_nonroot()
/third_party/ltp/testcases/kernel/syscalls/setfsgid/
H A Dsetfsgid03.c95 if (setuid(ltpuser->pw_uid) == -1) in setup()
97 "setuid failed to set the effective uid to %d", in setup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
H A D23-6.c39 if (setuid(pw->pw_uid) != 0) { in set_nonroot()
/third_party/pulseaudio/src/daemon/
H A Dcaps.c63 pa_assert_se(setuid(uid) >= 0); in pa_drop_root()
/third_party/backends/sanei/
H A Dsanei_pio.c132 extern int setuid (uid_t);
354 if (0 > setuid (0)) in pio_open()
356 DBG (1, "sanei_pio_open: setuid failed: errno = %d\n", errno); in pio_open()
/third_party/python/Lib/
H A Dsmtpd.py10 This program generally tries to setuid `nobody', unless this flag is
11 set. The setuid call will fail if this program is not run as root (in
784 setuid = True variable in Options
808 options.setuid = False
870 if options.setuid:
878 os.setuid(nobody)
880 print('Cannot setuid "nobody"; try running with -n option.', file=sys.stderr)
/third_party/ltp/testcases/kernel/fs/fs_perms/
H A Dfs_perms.c118 if (setuid(user_id)) in testfperm()
120 "Could not setuid to %d.", user_id); in testfperm()

Completed in 8 milliseconds

123