-/* $OpenBSD: login_passwd.c,v 1.11 2015/10/05 17:31:17 millert Exp $ */
+/* $OpenBSD: login_passwd.c,v 1.12 2015/10/14 17:06:58 deraadt Exp $ */
/*-
* Copyright (c) 2001 Hans Insulander <hin@openbsd.org>.
goodhash = pwd->pw_passwd;
setpriority(PRIO_PROCESS, 0, -4);
+
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+
if (crypt_checkpass(password, goodhash) == 0)
passok = 1;
plen = strlen(password);
-/* $OpenBSD: login_reject.c,v 1.10 2014/11/03 16:50:20 tedu Exp $ */
+/* $OpenBSD: login_reject.c,v 1.11 2015/10/14 17:06:58 deraadt Exp $ */
/*-
* Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved.
(void)setpriority(PRIO_PROCESS, 0, 0);
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+
openlog("login", LOG_ODELAY, LOG_AUTH);
while ((c = getopt(argc, argv, "v:s:")) != -1)