setusercontext
int setusercontext(login_cap_t *, struct passwd *, uid_t, unsigned int);
ret = lc ? setusercontext(lc, NULL, 0, flags) : -1;
DEF_WEAK(setusercontext);
PROTO_NORMAL(setusercontext);
if (setusercontext(lc, pw, 0, flags) != 0) {
setusercontext(lc, NULL, 0,
if (setusercontext(NULL, pw, pw->pw_uid,
if (setusercontext(NULL, targpw, target, LOGIN_SETGROUP |
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH)) {
if (setusercontext(lc, pwd, rootlogin ? 0 : pwd->pw_uid,
setusercontext(NULL, pw, pw->pw_uid, LOGIN_SETALL) != 0) {
if (setusercontext(lc, pw, pw->pw_uid,
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUSER) < 0) {
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0)
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH))
if (setusercontext(lc,
if (setusercontext(lc, pwd, pwd->pw_uid, flags) != 0)
if (setusercontext(lc, pwd, pwd->pw_uid, flags) == -1)
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETALL)) {
if (setusercontext(lc, e->pwd, e->pwd->pw_uid, LOGIN_SETALL) == -1) {
if (setusercontext(0, pw, pw->pw_uid, LOGIN_SETALL) == -1) {
if (setusercontext(NULL, pwd, pwd->pw_uid,
if (setusercontext(NULL, pwd, nsd.uid,
if(setusercontext(NULL, pwd, cfg_uid, (unsigned)