Searched refs:setusercontext (Results 1 - 21 of 21) sorted by relevance

/freebsd-10.1-release/lib/libutil/
H A Dlogin_cap.h121 int setusercontext(login_cap_t *, const struct passwd *, uid_t, unsigned int);
H A DMakefile45 login_class.3 setclassresources.3 login_class.3 setusercontext.3
H A Dlogin_class.c372 rc = lc ? setusercontext(lc, NULL, 0, flags) : -1;
410 * setusercontext()
416 * The difference between setclasscontext() and setusercontext() is
424 setusercontext(login_cap_t *lc, const struct passwd *pwd, uid_t uid, unsigned int flags) function
/freebsd-10.1-release/usr.sbin/jexec/
H A Djexec.c123 if (setusercontext(lcap, pwd, pwd->pw_uid,
125 err(1, "setusercontext");
/freebsd-10.1-release/usr.bin/su/
H A Dsu.c410 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) < 0)
411 err(1, "setusercontext");
506 if (setusercontext(lc, pwd, pwd->pw_uid, setwhat) < 0)
507 err(1, "setusercontext");
530 setusercontext(lc, pwd, pwd->pw_uid,
/freebsd-10.1-release/usr.sbin/cron/cron/
H A Dpopen.c168 setusercontext(lc, pwd, e->uid,
H A Ddo_command.c284 setusercontext(lc, pwd, e->uid,
/freebsd-10.1-release/usr.sbin/daemon/
H A Ddaemon.c233 if (setusercontext(NULL, pw, pw->pw_uid, LOGIN_SETALL) != 0)
/freebsd-10.1-release/libexec/atrun/
H A Datrun.c316 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL &
318 exit(EXIT_FAILURE); /* setusercontext() logged the error */
363 if (setusercontext(NULL, pentry, uid, LOGIN_SETALL) != 0)
364 exit(EXIT_FAILURE); /* setusercontext() logged the error */
/freebsd-10.1-release/libexec/rshd/
H A Drshd.c387 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) {
388 syslog(LOG_ERR, "setusercontext: %m");
492 if (setusercontext(lc, pwd, pwd->pw_uid,
494 syslog(LOG_ERR, "setusercontext(): %m");
/freebsd-10.1-release/usr.bin/newgrp/
H A Dnewgrp.c282 setusercontext(lc, pwd, pwd->pw_uid,
/freebsd-10.1-release/usr.bin/login/
H A Dlogin.c539 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) {
540 syslog(LOG_ERR, "setusercontext() failed - exiting");
605 if (setusercontext(lc, pwd, pwd->pw_uid,
607 syslog(LOG_ERR, "setusercontext() failed - exiting");
/freebsd-10.1-release/release/picobsd/tinyware/login/
H A Dpico-login.c593 * We need to do this before setusercontext() because that may
602 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) {
603 syslog(LOG_ERR, "setusercontext() failed - exiting");
660 if (setusercontext(lc, pwd, pwd->pw_uid,
662 syslog(LOG_ERR, "setusercontext() failed - exiting");
/freebsd-10.1-release/contrib/unbound/daemon/
H A Dunbound.c448 /* endpwent below, in case we need pwd for setusercontext */
527 /* setusercontext does initgroups, setuid, setgid, and
530 if(setusercontext(NULL, pwd, uid, (unsigned)
532 log_warn("unable to setusercontext %s: %s",
/freebsd-10.1-release/crypto/openssh/
H A Dsession.c1244 (void) setusercontext(lc, pw, pw->pw_uid,
1551 if (setusercontext(lc, pw, pw->pw_uid,
1588 if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUSER) < 0) {
1593 * FreeBSD's setusercontext() will not apply the user's
1596 (void) setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUMASK);
/freebsd-10.1-release/usr.sbin/jail/
H A Dcommand.c671 if (setusercontext(lcap, pwd, pwd->pw_uid, username
674 jail_warnx(j, "setusercontext %s: %s", pwd->pw_name,
/freebsd-10.1-release/libexec/ftpd/
H A Dftpd.c1192 setusercontext(NULL, getpwuid(0), 0, LOGIN_SETALL & ~(LOGIN_SETLOGIN |
1466 setusercontext(lc, pw, 0, LOGIN_SETALL &
/freebsd-10.1-release/sbin/init/
H A Dinit.c1731 setusercontext(lc, (struct passwd*)NULL, 0,
/freebsd-10.1-release/usr.sbin/inetd/
H A Dinetd.c842 if (setusercontext(lc, pwd, pwd->pw_uid,
846 "%s: can't setusercontext(..%s..): %m",
/freebsd-10.1-release/contrib/sendmail/src/
H A Ddeliver.c2430 setusercontext(NULL, pwd, pwd->pw_uid,
2434 syserr("openmailer: setusercontext() failed");
/freebsd-10.1-release/contrib/unbound/
H A Dconfigure17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17881 $as_echo_n "checking for library containing setusercontext... " >&6; }
17895 char setusercontext ();
17899 return setusercontext ();
17936 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent

Completed in 268 milliseconds