Lines Matching refs:user_cmd
974 * Fetch the user_cmd brand hook for getting a user's passwd(4) entry.
977 zone_get_user_cmd(brand_handle_t bh, const char *login, char *user_cmd,
980 bzero(user_cmd, sizeof (user_cmd));
981 if (brand_get_user_cmd(bh, login, user_cmd, len) != 0)
984 return (user_cmd);
991 * exec() the user_cmd brand hook, and convert the output string to a
996 zone_get_user_pw(const char *user_cmd, struct passwd *pwent, char *pwbuf,
1006 if ((fin = popen(user_cmd, "r")) == NULL)
1241 prep_env_noninteractive(const char *user_cmd, char **env)
1256 * Exec the "user_cmd" brand hook to get a pwent for the
1261 pw = zone_get_user_pw(user_cmd, &pwent, pwbuf, sizeof (pwbuf));
1532 noninteractive_login(char *zonename, const char *user_cmd, zoneid_t zoneid,
1651 new_env = prep_env_noninteractive(user_cmd, new_env);
1748 char user_cmd[MAXPATHLEN];
2060 * Get the brand specific user_cmd. This command is used to get
2064 if (zone_get_user_cmd(bh, login, user_cmd,
2065 sizeof (user_cmd)) == NULL) {
2066 zerror(gettext("could not get user_cmd for zone %s"),
2097 return (noninteractive_login(zonename, user_cmd, zoneid,