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

/freebsd-10.0-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.0-release/usr.sbin/jexec/
H A Djexec.c123 if (setusercontext(lcap, pwd, pwd->pw_uid,
125 err(1, "setusercontext");
/freebsd-10.0-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.0-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.0-release/usr.sbin/daemon/
H A Ddaemon.c233 if (setusercontext(NULL, pw, pw->pw_uid, LOGIN_SETALL) != 0)
/freebsd-10.0-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.0-release/libexec/rshd/
H A Drshd.c391 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) {
392 syslog(LOG_ERR, "setusercontext: %m");
496 if (setusercontext(lc, pwd, pwd->pw_uid,
498 syslog(LOG_ERR, "setusercontext(): %m");
/freebsd-10.0-release/usr.bin/newgrp/
H A Dnewgrp.c282 setusercontext(lc, pwd, pwd->pw_uid,
/freebsd-10.0-release/usr.bin/login/
H A Dlogin.c524 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) {
525 syslog(LOG_ERR, "setusercontext() failed - exiting");
583 if (setusercontext(lc, pwd, pwd->pw_uid,
585 syslog(LOG_ERR, "setusercontext() failed - exiting");
/freebsd-10.0-release/crypto/openssh/
H A Dsession.c1194 (void) setusercontext(lc, pw, pw->pw_uid,
1501 if (setusercontext(lc, pw, pw->pw_uid,
1538 if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUSER) < 0) {
1543 * FreeBSD's setusercontext() will not apply the user's
1546 (void) setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUMASK);
/freebsd-10.0-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.0-release/contrib/unbound/daemon/
H A Dunbound.c443 /* endpwent below, in case we need pwd for setusercontext */
522 /* setusercontext does initgroups, setuid, setgid, and
525 if(setusercontext(NULL, pwd, uid,
527 log_warn("unable to setusercontext %s: %s",
/freebsd-10.0-release/usr.sbin/jail/
H A Dcommand.c625 if (setusercontext(lcap, pwd, pwd->pw_uid, username
628 jail_warnx(j, "setusercontext %s: %s", pwd->pw_name,
/freebsd-10.0-release/libexec/ftpd/
H A Dftpd.c1194 setusercontext(NULL, getpwuid(0), 0, LOGIN_SETALL & ~(LOGIN_SETLOGIN |
1468 setusercontext(lc, pw, 0, LOGIN_SETALL &
/freebsd-10.0-release/sbin/init/
H A Dinit.c1731 setusercontext(lc, (struct passwd*)NULL, 0,
/freebsd-10.0-release/usr.sbin/inetd/
H A Dinetd.c842 if (setusercontext(lc, pwd, pwd->pw_uid,
846 "%s: can't setusercontext(..%s..): %m",
/freebsd-10.0-release/contrib/lukemftpd/src/
H A Dftpd.c1266 setusercontext(NULL, getpwuid(0), 0, LOGIN_SETALL & ~(LOGIN_SETLOGIN |
1431 setusercontext(lc, pw, 0, LOGIN_SETALL &
/freebsd-10.0-release/contrib/sendmail/src/
H A Ddeliver.c2430 setusercontext(NULL, pwd, pwd->pw_uid,
2434 syserr("openmailer: setusercontext() failed");
/freebsd-10.0-release/contrib/unbound/
H A Dconfigure17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17525 $as_echo_n "checking for library containing setusercontext... " >&6; }
17539 char setusercontext ();
17543 return setusercontext ();
17580 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

Completed in 180 milliseconds