setusercontext
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0)
if (setusercontext(lc, pw, pw->pw_uid,
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUSER) < 0) {
(void) setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUMASK);
int setusercontext(login_cap_t *, const struct passwd *, uid_t, unsigned int);
rc = lc ? setusercontext(lc, NULL, 0, flags) : -1;
if (setusercontext(NULL, pentry, uid, LOGIN_SETALL &
if (setusercontext(NULL, pentry, uid, LOGIN_SETALL) != 0)
setusercontext(NULL, getpwuid(0), 0,
setusercontext(lc, pw, 0,
setusercontext(lc, NULL, 0, LOGIN_SETPRIORITY|LOGIN_SETRESOURCES);
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) {
if (setusercontext(lc, pwd, pwd->pw_uid,
setusercontext(lc, pwd, pwd->pw_uid,
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) < 0)
if (setusercontext(lc, pwd, pwd->pw_uid, setwhat) < 0)
setusercontext(lc, pwd, pwd->pw_uid,
setusercontext(lc, pwd, e->uid,
setusercontext(lc, pwd, e->uid,
if (setusercontext(NULL, pw, pw->pw_uid, LOGIN_SETALL) != 0)
if (setusercontext(lc, pwd, pwd->pw_uid,
if (setusercontext(lcap, pwd, pwd->pw_uid,