git.ckatri.com
/
apple_cmds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5516b20
)
md5: Don't symlink non working bins, setuid appropriate bins
main
author
Cameron Katri
<me@cameronkatri.com>
Fri, 27 Aug 2021 22:42:53 +0000
(18:42 -0400)
committer
Cameron Katri
<me@cameronkatri.com>
Fri, 27 Aug 2021 22:42:53 +0000
(18:42 -0400)
diskdev_cmds/quota.tproj/Makefile
patch
|
blob
|
history
shell_cmds/su/Makefile
patch
|
blob
|
history
system_cmds/passwd.tproj/Makefile
patch
|
blob
|
history
text_cmds/md5/Makefile
patch
|
blob
|
history
diff --git
a/diskdev_cmds/quota.tproj/Makefile
b/diskdev_cmds/quota.tproj/Makefile
index ba137fe283046fa35cc2e5c62136ed6935a361e5..3002f803955d03d4d95cafda0e10873862584014 100644
(file)
--- a/
diskdev_cmds/quota.tproj/Makefile
+++ b/
diskdev_cmds/quota.tproj/Makefile
@@
-1,6
+1,9
@@
PROG= quota
MAN= quota.1
PROG= quota
MAN= quota.1
+# Setuid this bin
+BINMODE=4555
+
BINDIR=/usr/bin
.include <bsd.prog.mk>
BINDIR=/usr/bin
.include <bsd.prog.mk>
diff --git
a/shell_cmds/su/Makefile
b/shell_cmds/su/Makefile
index 7bc56fbd4b8a0a7b6f565c055ed1fad7275be593..4466d8d02527e1a397ab5cba37905621ce978ece 100644
(file)
--- a/
shell_cmds/su/Makefile
+++ b/
shell_cmds/su/Makefile
@@
-1,5
+1,8
@@
PROG= su
PROG= su
+# Setuid this bin
+BINMODE=4555
+
LDADD=-lpam -liosexec
.include <bsd.prog.mk>
LDADD=-lpam -liosexec
.include <bsd.prog.mk>
diff --git
a/system_cmds/passwd.tproj/Makefile
b/system_cmds/passwd.tproj/Makefile
index 7dcc91f476ea5ce46f46fe70700be7964b720586..3df567775dc1987e63c357715fcf885fcc9ae9af 100644
(file)
--- a/
system_cmds/passwd.tproj/Makefile
+++ b/
system_cmds/passwd.tproj/Makefile
@@
-3,6
+3,9
@@
MAN= passwd.1
SRCS= file_passwd.c nis_passwd.c od_passwd.c \
pam_passwd.c passwd.c
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>
LDADD+=-lcrypt
.include <bsd.prog.mk>
diff --git
a/text_cmds/md5/Makefile
b/text_cmds/md5/Makefile
index c152154a9d4ed7a4ecd055ffe4bc33affaddc995..cb92a5c064a307c97e322f19cf900555d3e5213d 100644
(file)
--- a/
text_cmds/md5/Makefile
+++ b/
text_cmds/md5/Makefile
@@
-3,25
+3,11
@@
SRCS= md5.c commoncrypto.c
LINKS= ${BINDIR}/md5 ${BINDIR}/rmd160 \
${BINDIR}/md5 ${BINDIR}/sha1 \
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 \
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
BINDIR=/sbin