aboutsummaryrefslogtreecommitdiff
path: root/secure
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-07-05 08:39:09 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-07-05 08:39:09 +0000
commit81d858170e52f46ca9605f14d639312e8255a35a (patch)
tree5250eb7f3801cd1cd8afc6b8e1048910a9748149 /secure
parent21f1b5331fb1809426346388cc87474ebc96fbc5 (diff)
downloadsrc-81d858170e52f46ca9605f14d639312e8255a35a.tar.gz
src-81d858170e52f46ca9605f14d639312e8255a35a.zip
ssh-keysign(8) belongs in /usr/libexec, not in /usr/bin, and needs to be
setuid so ssh(1) doesn't have to be. Pointy hat to: des Submitted by: Katsuyuki TATEISHI <katsu@iec.hiroshima-u.ac.jp>
Notes
Notes: svn path=/head/; revision=99430
Diffstat (limited to 'secure')
-rw-r--r--secure/libexec/Makefile2
-rw-r--r--secure/libexec/ssh-keysign/Makefile (renamed from secure/usr.bin/ssh-keysign/Makefile)3
-rw-r--r--secure/usr.bin/Makefile2
-rw-r--r--secure/usr.bin/ssh/Makefile3
4 files changed, 5 insertions, 5 deletions
diff --git a/secure/libexec/Makefile b/secure/libexec/Makefile
index cd8405bbac94..dba033137bbc 100644
--- a/secure/libexec/Makefile
+++ b/secure/libexec/Makefile
@@ -4,7 +4,7 @@
SUBDIR= telnetd
.endif
.if !defined(NO_OPENSSL) && !defined(NO_OPENSSH)
-SUBDIR+=sftp-server
+SUBDIR+=sftp-server ssh-keysign
.endif
.include <bsd.subdir.mk>
diff --git a/secure/usr.bin/ssh-keysign/Makefile b/secure/libexec/ssh-keysign/Makefile
index 5fdd6723fc24..7a21e596cb1f 100644
--- a/secure/usr.bin/ssh-keysign/Makefile
+++ b/secure/libexec/ssh-keysign/Makefile
@@ -3,6 +3,9 @@
PROG= ssh-keysign
MAN= ssh-keysign.8
CFLAGS+=-I${SSHDIR}
+.if defined(ENABLE_SUID_SSH)
+BINMODE=4511
+.endif
DPADD= ${LIBSSH} ${LIBCRYPTO} ${LIBZ}
LDADD= -lssh -lcrypto -lz
diff --git a/secure/usr.bin/Makefile b/secure/usr.bin/Makefile
index bcc8aa24bb7c..42b8aa2ff2b3 100644
--- a/secure/usr.bin/Makefile
+++ b/secure/usr.bin/Makefile
@@ -7,7 +7,7 @@ SUBDIR+=telnet
.if !defined(NO_OPENSSL)
SUBDIR+=openssl
.if !defined(NO_OPENSSH)
-SUBDIR+=scp sftp ssh ssh-add ssh-agent ssh-keygen ssh-keyscan ssh-keysign
+SUBDIR+=scp sftp ssh ssh-add ssh-agent ssh-keygen ssh-keyscan
.endif
.endif
diff --git a/secure/usr.bin/ssh/Makefile b/secure/usr.bin/ssh/Makefile
index d9ba6a7cac47..42964ca52b10 100644
--- a/secure/usr.bin/ssh/Makefile
+++ b/secure/usr.bin/ssh/Makefile
@@ -3,9 +3,6 @@
PROG= ssh
CFLAGS+=-I${SSHDIR}
-.if defined(ENABLE_SUID_SSH)
-BINMODE=4555
-.endif
LINKS= ${BINDIR}/ssh ${BINDIR}/slogin
MAN= ssh.1 ssh_config.5
MLINKS= ssh.1 slogin.1