Searched refs:setgid (Results 51 - 72 of 72) sorted by relevance

123

/freebsd-11-stable/lib/libutil/
H A Dpw_util.c313 (void)setgid(getgid());
/freebsd-11-stable/contrib/apr/threadproc/unix/
H A Dproc.c479 if (setgid(attr->gid)) {
/freebsd-11-stable/contrib/unbound/daemon/
H A Dunbound.c553 /* setusercontext does initgroups, setuid, setgid, and
634 #else /* use setgid */
635 if(setgid(cfg_gid) != 0)
/freebsd-11-stable/contrib/sendmail/src/
H A Drecipient.c1538 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 Dmain.c3815 ** 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 Dutil.c2128 if (setgid(DefGid) < 0 && geteuid() == 0)
2130 syserr("prog_open: setgid(%ld) failed", (long) DefGid);
H A Ddeliver.c2636 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 Dprintjob.c177 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 Drshd.c768 if (setgid(pwd->pw_gid) < 0)
769 fatal (s, "setgid", "Login incorrect.");
/freebsd-11-stable/contrib/opie/
H A Dopielogin.c1299 setgid(thisuser.pw_gid);
/freebsd-11-stable/usr.sbin/edquota/
H A Dedquota.c454 if (setgid(getgid()) != 0)
455 err(1, "setgid failed");
/freebsd-11-stable/usr.sbin/jail/
H A Dcommand.c718 if (setgid(pwd->pw_gid) < 0) {
719 jail_warnx(j, "setgid %d: %s", pwd->pw_gid,
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntpd.c732 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 DCheckSecuritySyntaxOnly.cpp1008 "setuid", "setgid", "seteuid", "setegid",
/freebsd-11-stable/contrib/gcc/
H A Dsys-protos.h977 extern int setgid(gid_t);
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipfstat.c270 (void)setgid(getgid());
281 (void)setgid(getgid());
/freebsd-11-stable/crypto/openssh/
H A Dssh-agent.c1256 setgid(getgid());
H A Dsession.c1363 if (setgid(pw->pw_gid) < 0) {
1364 perror("setgid");
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/
H A DProcessMonitor.cpp860 // 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 Dconf.h1907 # define setgid sendmail_mpe_setgid macro
/freebsd-11-stable/usr.sbin/inetd/
H A Dinetd.c864 if (setgid(pwd->pw_gid) < 0) {
/freebsd-11-stable/sbin/dhclient/
H A Ddhclient.c513 setegid(pw->pw_gid) || setgid(pw->pw_gid) ||

Completed in 399 milliseconds

123