Lines Matching +full:software +full:- +full:locked
4 * Permission to use, copy, modify, and distribute this software for any
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30 #include "auth-pam.h"
33 #include "openbsd-compat/openbsd-compat.h"
42 /* Adjust out-of-memory killer so listening process is not killed */ in platform_pre_listen()
136 if (getluid() == -1 && setluid(pw->pw_uid) == -1) in platform_setusercontext()
183 if (setpcred(pw->pw_name, creds) == -1) in platform_setusercontext_post_groups()
188 ssh_selinux_setup_exec_context(pw->pw_name); in platform_setusercontext_post_groups()
202 /* returns 1 if account is locked */
206 int locked = 0; in platform_locked_account() local
207 char *passwd = pw->pw_passwd; in platform_locked_account()
214 spw = getspnam(pw->pw_name); in platform_locked_account()
224 passwd = spw->sp_pwdp; in platform_locked_account()
228 /* check for locked account */ in platform_locked_account()
232 locked = 1; in platform_locked_account()
237 locked = 1; in platform_locked_account()
241 locked = 1; in platform_locked_account()
249 return locked; in platform_locked_account()