Searched refs:setgid (Results 51 - 72 of 72) sorted by relevance
123
/freebsd-11-stable/lib/libutil/ |
H A D | pw_util.c | 313 (void)setgid(getgid());
|
/freebsd-11-stable/contrib/apr/threadproc/unix/ |
H A D | proc.c | 479 if (setgid(attr->gid)) {
|
/freebsd-11-stable/contrib/unbound/daemon/ |
H A D | unbound.c | 553 /* setusercontext does initgroups, setuid, setgid, and 634 #else /* use setgid */ 635 if(setgid(cfg_gid) != 0)
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | recipient.c | 1538 if (gid != 0 && setgid(gid) < -1) 1541 syserr("setgid(%ld) failure", (long) gid); 1703 if (setgid(savedgid) < 0) 1704 syserr("!setgid(%ld) failure (real=%ld eff=%ld)",
|
H A D | main.c | 3815 ** and then use setgid() to finally drop all group privileges. 3849 if (setgid(RunAsGid) < 0 && (!UseMSP || getegid() != RunAsGid)) 3851 syserr("drop_privileges: setgid(%ld) failed", 3942 if (setgid(EffGid) == 0) 3944 syserr("drop_privileges: setgid(%d) succeeded (when it should not)",
|
H A D | util.c | 2128 if (setgid(DefGid) < 0 && geteuid() == 0) 2130 syserr("prog_open: setgid(%ld) failed", (long) DefGid);
|
H A D | deliver.c | 2636 if (setgid(new_gid) < 0 && suidwarn) 2638 syserr("openmailer: setgid(%ld) failed", 5717 if (setgid(RealGid) < 0 && suidwarn) 5719 syserr("mailfile: setgid(%ld) failed", (long) RealGid);
|
/freebsd-11-stable/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 177 if(setgid(getegid()) != 0) err(1, "setgid() failed"); 1671 fail = setgid(daemon_defgid); 1673 syslog(LOG_ERR, "%s: setgid(%u): %m",
|
/freebsd-11-stable/crypto/heimdal/appl/rsh/ |
H A D | rshd.c | 768 if (setgid(pwd->pw_gid) < 0) 769 fatal (s, "setgid", "Login incorrect.");
|
/freebsd-11-stable/contrib/opie/ |
H A D | opielogin.c | 1299 setgid(thisuser.pw_gid);
|
/freebsd-11-stable/usr.sbin/edquota/ |
H A D | edquota.c | 454 if (setgid(getgid()) != 0) 455 err(1, "setgid failed");
|
/freebsd-11-stable/usr.sbin/jail/ |
H A D | command.c | 718 if (setgid(pwd->pw_gid) < 0) { 719 jail_warnx(j, "setgid %d: %s", pwd->pw_gid,
|
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | ntpd.c | 732 if (group && setgid(sw_gid)) { 733 msyslog(LOG_ERR, "Cannot setgid() to group `%s': %m", group);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckSecuritySyntaxOnly.cpp | 1008 "setuid", "setgid", "seteuid", "setegid",
|
/freebsd-11-stable/contrib/gcc/ |
H A D | sys-protos.h | 977 extern int setgid(gid_t);
|
/freebsd-11-stable/contrib/ipfilter/tools/ |
H A D | ipfstat.c | 270 (void)setgid(getgid()); 281 (void)setgid(getgid());
|
/freebsd-11-stable/crypto/openssh/ |
H A D | ssh-agent.c | 1256 setgid(getgid());
|
H A D | session.c | 1363 if (setgid(pw->pw_gid) < 0) { 1364 perror("setgid");
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ |
H A D | ProcessMonitor.cpp | 860 // Do not inherit setgid powers. 861 if (setgid(getgid()) != 0) 921 args->m_error.SetErrorString("Child setgid failed.");
|
/freebsd-11-stable/contrib/sendmail/include/sm/ |
H A D | conf.h | 1907 # define setgid sendmail_mpe_setgid macro
|
/freebsd-11-stable/usr.sbin/inetd/ |
H A D | inetd.c | 864 if (setgid(pwd->pw_gid) < 0) {
|
/freebsd-11-stable/sbin/dhclient/ |
H A D | dhclient.c | 513 setegid(pw->pw_gid) || setgid(pw->pw_gid) ||
|
Completed in 399 milliseconds
123