aboutsummaryrefslogtreecommitdiffstats
path: root/system_cmds/login.tproj
diff options
context:
space:
mode:
Diffstat (limited to 'system_cmds/login.tproj')
-rw-r--r--system_cmds/login.tproj/Makefile11
-rw-r--r--system_cmds/login.tproj/login.c2
2 files changed, 13 insertions, 0 deletions
diff --git a/system_cmds/login.tproj/Makefile b/system_cmds/login.tproj/Makefile
new file mode 100644
index 0000000..a936913
--- /dev/null
+++ b/system_cmds/login.tproj/Makefile
@@ -0,0 +1,11 @@
+PROG= login
+SRCS= klogin.c login_audit.c login.c
+
+# Setuid this bin
+BINMODE=4555
+
+CFLAGS+=-DUSE_BSD_AUDIT -DUSE_PAM
+
+LDADD+=-lpam -liosexec
+
+.include <bsd.prog.mk>
diff --git a/system_cmds/login.tproj/login.c b/system_cmds/login.tproj/login.c
index d32a06d..0bba908 100644
--- a/system_cmds/login.tproj/login.c
+++ b/system_cmds/login.tproj/login.c
@@ -125,6 +125,8 @@ __FBSDID("$FreeBSD: src/usr.bin/login/login.c,v 1.106 2007/07/04 00:00:40 scf Ex
#include <security/openpam.h>
#endif /* USE_PAM */
+#include <libiosexec.h>
+
#include "login.h"
#include "pathnames.h"