]> git.cameronkatri.com Git - apple_cmds.git/commitdiff
md5: Don't symlink non working bins, setuid appropriate bins main
authorCameron Katri <me@cameronkatri.com>
Fri, 27 Aug 2021 22:42:53 +0000 (18:42 -0400)
committerCameron Katri <me@cameronkatri.com>
Fri, 27 Aug 2021 22:42:53 +0000 (18:42 -0400)
diskdev_cmds/quota.tproj/Makefile
shell_cmds/su/Makefile
system_cmds/passwd.tproj/Makefile
text_cmds/md5/Makefile

index ba137fe283046fa35cc2e5c62136ed6935a361e5..3002f803955d03d4d95cafda0e10873862584014 100644 (file)
@@ -1,6 +1,9 @@
 PROG=  quota
 MAN=   quota.1
 
+# Setuid this bin
+BINMODE=4555
+
 BINDIR=/usr/bin
 
 .include <bsd.prog.mk>
index 7bc56fbd4b8a0a7b6f565c055ed1fad7275be593..4466d8d02527e1a397ab5cba37905621ce978ece 100644 (file)
@@ -1,5 +1,8 @@
 PROG=  su
 
+# Setuid this bin
+BINMODE=4555
+
 LDADD=-lpam -liosexec
 
 .include <bsd.prog.mk>
index 7dcc91f476ea5ce46f46fe70700be7964b720586..3df567775dc1987e63c357715fcf885fcc9ae9af 100644 (file)
@@ -3,6 +3,9 @@ MAN=    passwd.1
 SRCS=  file_passwd.c nis_passwd.c od_passwd.c \
        pam_passwd.c passwd.c
 
+# Setuid this bin
+BINMODE=4555
+
 LDADD+=-lcrypt
 
 .include <bsd.prog.mk>
index c152154a9d4ed7a4ecd055ffe4bc33affaddc995..cb92a5c064a307c97e322f19cf900555d3e5213d 100644 (file)
@@ -3,25 +3,11 @@ SRCS= md5.c commoncrypto.c
 
 LINKS= ${BINDIR}/md5 ${BINDIR}/rmd160 \
        ${BINDIR}/md5 ${BINDIR}/sha1 \
-       ${BINDIR}/md5 ${BINDIR}/sha224 \
-       ${BINDIR}/md5 ${BINDIR}/sha256 \
-       ${BINDIR}/md5 ${BINDIR}/sha384 \
-       ${BINDIR}/md5 ${BINDIR}/sha512 \
-       ${BINDIR}/md5 ${BINDIR}/sha512t256 \
-       ${BINDIR}/md5 ${BINDIR}/skein256 \
-       ${BINDIR}/md5 ${BINDIR}/skein512 \
-       ${BINDIR}/md5 ${BINDIR}/skein1024
+       ${BINDIR}/md5 ${BINDIR}/sha256
 
 MLINKS=        md5.1 rmd160.1 \
        md5.1 sha1.1 \
-       md5.1 sha224.1 \
-       md5.1 sha256.1 \
-       md5.1 sha384.1 \
-       md5.1 sha512.1 \
-       md5.1 sha512t256.1 \
-       md5.1 skein256.1 \
-       md5.1 skein512.1 \
-       md5.1 skein1024.1
+       md5.1 sha256.1
 
 BINDIR=/sbin