| /src/lib/libutil/compat/ |
| compat_login_cap.c | 50 __warn_references(setusercontext, 51 "warning: reference to compatibility setusercontext();" 64 setusercontext(login_cap_t *lc, struct passwd50 *pw50, uid_t uid, u_int flags) function
|
| login_cap.h | 47 int setusercontext(login_cap_t *, struct passwd50 *, uid_t, u_int);
|
| /src/include/ |
| login_cap.h | 84 int setusercontext(login_cap_t *, struct passwd *, uid_t, unsigned int)
|
| /src/usr.bin/newgrp/ |
| newgrp.c | 128 if (setusercontext(lc, pwd, uid, flags) == -1) 129 err(EXIT_FAILURE, "setusercontext"); 168 if (setusercontext(lc, pwd, uid, LOGIN_SETENV | LOGIN_SETPATH) == -1) 169 err(EXIT_FAILURE, "setusercontext");
|
| grutil.c | 332 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGID) == -1)
|
| /src/usr.bin/su/ |
| su.c | 329 setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) == -1) 334 if (setusercontext(lc, pwd, pwd->pw_uid, 339 if (setusercontext(lc, pwd, pwd->pw_uid, 364 if (setusercontext(lc, pwd, pwd->pw_uid,
|
| su_pam.c | 345 setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) == -1) 492 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH | 551 if (setusercontext(lc, pwd, pwd->pw_uid, setwhat) == -1) 552 err(EXIT_FAILURE, "setusercontext");
|
| /src/usr.bin/login/ |
| login_pam.c | 471 if (nested == NULL && setusercontext(lc, pwd, pwd->pw_uid, 473 syslog(LOG_ERR, "setusercontext failed"); 481 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) { 482 syslog(LOG_ERR, "setusercontext failed"); 613 if (setusercontext(lc, pwd, pwd->pw_uid, 615 syslog(LOG_ERR, "setusercontext failed");
|
| login.c | 577 if (nested == NULL && setusercontext(lc, pwd, pwd->pw_uid, 579 syslog(LOG_ERR, "setusercontext failed"); 582 if (setusercontext(lc, pwd, pwd->pw_uid, 584 syslog(LOG_ERR, "setusercontext failed"); 630 setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH);
|
| /src/lib/libutil/ |
| Makefile | 65 MLINKS+=login_cap.3 setusercontext.3
|
| login_cap.c | 555 ret = lc ? setusercontext(lc, NULL, 0, flags) : -1; 561 setusercontext(login_cap_t *lc, struct passwd *pwd, uid_t uid, u_int flags) function
|
| /src/external/bsd/cron/dist/ |
| popen.c | 104 if (setusercontext(0, pw, pw->pw_uid, LOGIN_SETALL) < 0) 106 warn("setusercontext() failed for %s",
|
| do_command.c | 384 if (setusercontext(lc, e->pwd, e->pwd->pw_uid, LOGIN_SETALL) < 0) { 385 warnx("setusercontext failed for `%s'",
|
| /src/libexec/rshd/ |
| rshd.c | 538 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) { 539 syslog(LOG_ERR, "setusercontext: %m"); 693 if (setusercontext(lc, pwd, pwd->pw_uid, 695 syslog(LOG_ERR, "setusercontext(): %m");
|
| /src/external/bsd/unbound/dist/daemon/ |
| unbound.c | 540 /* endpwent below, in case we need pwd for setusercontext */ 608 /* setusercontext does initgroups, setuid, setgid, and 611 if(setusercontext(NULL, pwd, cfg_uid, (unsigned) 613 log_warn("unable to setusercontext %s: %s",
|
| /src/crypto/external/bsd/openssh/dist/ |
| session.c | 863 if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0) 1177 if (setusercontext(lc, pw, pw->pw_uid, 1226 if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUSER) < 0) {
|
| /src/external/bsd/nsd/dist/ |
| nsd.c | 1572 /* setusercontext does initgroups, setuid, setgid, and 1575 if (setusercontext(NULL, pwd, nsd.uid, 1577 log_msg(LOG_WARNING, "unable to setusercontext %s: %s",
|
| /src/libexec/ftpd/ |
| ftpd.c | 1310 setusercontext(NULL, getpwuid(0), 0, 1480 setusercontext(lc, pw, 0,
|
| /src/external/bsd/unbound/dist/ |
| configure | 24753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 24754 printf %s "checking for library containing setusercontext... " >&6; } 24772 char setusercontext (void); 24776 return setusercontext (); 24958 ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext"
|