aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/nologin
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2004-03-13 04:39:45 +0000
committerColin Percival <cperciva@FreeBSD.org>2004-03-13 04:39:45 +0000
commit432b2d95316ce2304a317a0801fab478fe50218d (patch)
treeb6d3965c1668c882a4b3ea29e1c7f5a273944ead /usr.sbin/nologin
parent0249823ecb4ba230ec45c3a950d823bd6e38932f (diff)
downloadsrc-432b2d95316ce2304a317a0801fab478fe50218d.tar.gz
src-432b2d95316ce2304a317a0801fab478fe50218d.zip
When nologin(8) is installed in /usr/sbin/, create a symlink from
/sbin/nologin for compatibility purposes. Also, remove the NO_NOLOGIN_LOG option; we don't need to worry about conserving space as much on the /usr partition. Note that usr.sbin/nologin is not yet hooked up to the build.
Notes
Notes: svn path=/head/; revision=126903
Diffstat (limited to 'usr.sbin/nologin')
-rw-r--r--usr.sbin/nologin/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/nologin/Makefile b/usr.sbin/nologin/Makefile
index c98b44bf17c0..48efba2956ac 100644
--- a/usr.sbin/nologin/Makefile
+++ b/usr.sbin/nologin/Makefile
@@ -4,6 +4,8 @@
PROG= nologin
MAN= nologin.5 nologin.8
+SYMLINKS= ${BINDIR}/nologin /sbin/nologin
+
# It is important that nologin be statically linked for security
# reasons. A dynamic non-setuid binary can be linked against a trojan
# libc by setting LD_LIBRARY_PATH appropriately. Both sshd(8) and
@@ -11,11 +13,4 @@ MAN= nologin.5 nologin.8
# rendering a dynamic nologin binary virtually useless.
NOSHARED= YES
-# Logging to syslog increases the size of the statically linked
-# binary by over 100K. Provide an option for disabling this on
-# systems where conserving space on the root device is critical.
-.ifdef NO_NOLOGIN_LOG
-CFLAGS+= -DNO_NOLOGIN_LOG
-.endif
-
.include <bsd.prog.mk>