Home
last modified time | relevance | path

Searched refs:setusercontext (Results 1 – 25 of 28) sorted by relevance

12

/netbsd-src/lib/libutil/compat/
H A Dcompat_login_cap.c50 __warn_references(setusercontext,
64 setusercontext(login_cap_t *lc, struct passwd50 *pw50, uid_t uid, u_int flags) in setusercontext() function
H A Dlogin_cap.h47 int setusercontext(login_cap_t *, struct passwd50 *, uid_t, u_int);
/netbsd-src/usr.bin/newgrp/
H A Dnewgrp.c128 if (setusercontext(lc, pwd, uid, flags) == -1) in main()
168 if (setusercontext(lc, pwd, uid, LOGIN_SETENV | LOGIN_SETPATH) == -1) in main()
H A Dgrutil.c332 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGID) == -1) in addgroup()
/netbsd-src/usr.bin/su/
H A Dsu.c329 setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) == -1) in main()
334 if (setusercontext(lc, pwd, pwd->pw_uid, in main()
339 if (setusercontext(lc, pwd, pwd->pw_uid, in main()
364 if (setusercontext(lc, pwd, pwd->pw_uid, in main()
H A Dsu_pam.c345 setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) == -1) in main()
492 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH | in main()
551 if (setusercontext(lc, pwd, pwd->pw_uid, setwhat) == -1) in main()
/netbsd-src/usr.bin/login/
H A Dlogin_pam.c471 if (nested == NULL && setusercontext(lc, pwd, pwd->pw_uid, in main()
481 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) { in main()
613 if (setusercontext(lc, pwd, pwd->pw_uid, in main()
H A Dlogin.c577 if (nested == NULL && setusercontext(lc, pwd, pwd->pw_uid, in main()
582 if (setusercontext(lc, pwd, pwd->pw_uid, in main()
630 setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH); in main()
/netbsd-src/include/
H A Dlogin_cap.h84 int setusercontext(login_cap_t *, struct passwd *, uid_t, unsigned int)
/netbsd-src/external/bsd/cron/dist/
H A Dpopen.c104 if (setusercontext(0, pw, pw->pw_uid, LOGIN_SETALL) < 0) in cron_popen()
H A Ddo_command.c384 if (setusercontext(lc, e->pwd, e->pwd->pw_uid, LOGIN_SETALL) < 0) { in exec_user_command()
/netbsd-src/lib/libutil/
H A DMakefile65 MLINKS+=login_cap.3 setusercontext.3
H A Dlogin_cap.c555 ret = lc ? setusercontext(lc, NULL, 0, flags) : -1; in setclasscontext()
561 setusercontext(login_cap_t *lc, struct passwd *pwd, uid_t uid, u_int flags) in setusercontext() function
/netbsd-src/libexec/rshd/
H A Drshd.c538 if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) { in doit()
693 if (setusercontext(lc, pwd, pwd->pw_uid, in doit()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dsession.c896 if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0) in do_setup_env()
1206 if (setusercontext(lc, pw, pw->pw_uid, in do_setusercontext()
1255 if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUSER) < 0) { in do_setusercontext()
/netbsd-src/external/bsd/unbound/dist/daemon/
H A Dunbound.c585 if(setusercontext(NULL, pwd, cfg_uid, (unsigned) in perform_setup()
/netbsd-src/external/bsd/nsd/dist/
H A Dconfigure.ac677 AC_SEARCH_LIBS([setusercontext],[util],[AC_CHECK_HEADERS([login_cap.h],,, [AC_INCLUDES_DEFAULT])])
678 …nfo gai_strerror sigaction sigprocmask strptime strftime localtime_r setusercontext glob initgroup…
H A Dnsd.c1616 if (setusercontext(NULL, pwd, nsd.uid, in main()
H A Dconfig.h.in347 /* Define to 1 if you have the `setusercontext' function. */
H A Dconfigure7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
7929 $as_echo_n "checking for library containing setusercontext... " >&6; }
/netbsd-src/libexec/ftpd/
H A Dftpd.c1310 setusercontext(NULL, getpwuid(0), 0, in end_login()
1479 setusercontext(lc, pw, 0, in do_pass()
/netbsd-src/external/bsd/unbound/dist/
H A Dconfigure.ac1675 AC_SEARCH_LIBS([setusercontext], [util])
1676 …cvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex…
H A Dconfig.h.in523 /* Define to 1 if you have the `setusercontext' function. */
/netbsd-src/usr.sbin/makemandb/
H A Dnostem.txt3621 setusercontext
/netbsd-src/external/bsd/nsd/dist/doc/
H A DRELNOTES1524 - Do setusercontext() before chroot(), otherwise login.conf etc. are
1600 - Fix typo in include file for setusercontext.

12