setusercontext
int setusercontext(login_cap_t *, struct passwd *, uid_t, unsigned int)
__warn_references(setusercontext,
int setusercontext(login_cap_t *, struct passwd50 *, uid_t, u_int);
ret = lc ? setusercontext(lc, NULL, 0, flags) : -1;
setusercontext(NULL, getpwuid(0), 0,
setusercontext(lc, pw, 0,
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) {
if (setusercontext(lc, pwd, pwd->pw_uid,
if (nested == NULL && setusercontext(lc, pwd, pwd->pw_uid,
if (setusercontext(lc, pwd, pwd->pw_uid,
setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH);
if (nested == NULL && setusercontext(lc, pwd, pwd->pw_uid,
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) != 0) {
if (setusercontext(lc, pwd, pwd->pw_uid,
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGID) == -1)
if (setusercontext(lc, pwd, uid, flags) == -1)
if (setusercontext(lc, pwd, uid, LOGIN_SETENV | LOGIN_SETPATH) == -1)
setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) == -1)
if (setusercontext(lc, pwd, pwd->pw_uid,
if (setusercontext(lc, pwd, pwd->pw_uid,
if (setusercontext(lc, pwd, pwd->pw_uid,
setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) == -1)
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH |
if (setusercontext(lc, pwd, pwd->pw_uid, setwhat) == -1)