Add _PATH_AUTHPROGDIR = "/usr/libexec/auth", this path will be used
authorderaadt <deraadt@openbsd.org>
Sun, 29 Jul 2018 19:40:41 +0000 (19:40 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 29 Jul 2018 19:40:41 +0000 (19:40 +0000)
to unveil. Unfortunately the auth subsystem uses _PATH_AUTHPROG =
"/usr/libexec/auth/login_", which it auth-program is appended to -- a
rather gross idea which now shows lack of wisdom.

include/login_cap.h

index 910d78b..46a8bb6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: login_cap.h,v 1.15 2014/11/21 05:13:44 tedu Exp $     */
+/*     $OpenBSD: login_cap.h,v 1.16 2018/07/29 19:40:41 deraadt Exp $  */
 
 /*-
  * Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved.
@@ -42,6 +42,7 @@
 #define        LOGIN_DEFSERVICE        "login"
 #define        LOGIN_DEFUMASK          022
 #define        _PATH_LOGIN_CONF        "/etc/login.conf"
+#define        _PATH_AUTHPROGDIR       "/usr/libexec/auth"
 #define        _PATH_AUTHPROG          "/usr/libexec/auth/login_"
 
 #define        LOGIN_SETGROUP          0x0001  /* Set group */