1 /* Copyright 2015 Nathan Holstein */
10 setusercontext(login_cap_t *lc, struct passwd *pwd, uid_t uid, unsigned int flags)
12 if (lc != NULL || pwd == NULL ||
13 (flags & ~(LOGIN_SETGROUP | LOGIN_SETPRIORITY |
14 LOGIN_SETRESOURCES | LOGIN_SETUMASK |
15 LOGIN_SETUSER)) != 0) {
20 fprintf(stderr, "failing setusercontext() for %d\n", (int) uid);