summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2014-08-21 19:04:15 +0000
committerneel <neel@FreeBSD.org>2014-08-21 19:04:15 +0000
commitd00c242753e96d6fc853b2f08ee9dfb04758ccc3 (patch)
treecb69c3aae8eb43e14a83f62dd8d653f1d828640d /sbin
parent96749983160dd680ba2112e09e4f0542b1db7abe (diff)
downloadFreeBSD-src-d00c242753e96d6fc853b2f08ee9dfb04758ccc3.zip
FreeBSD-src-d00c242753e96d6fc853b2f08ee9dfb04758ccc3.tar.gz
Change file permissions for some setuid executables so they are "o+r".
The executable itself doesn't contain any privileged information. An example of where this is useful is when makefs(8) is creating an image that includes /sbin/shutdown. This can now be done without root privileges. Reviewed by: delphij Discussed with: delphij, des CR: https://reviews.freebsd.org/D662
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mksnap_ffs/Makefile4
-rw-r--r--sbin/shutdown/Makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mksnap_ffs/Makefile b/sbin/mksnap_ffs/Makefile
index 9247cb2..de96fa0 100644
--- a/sbin/mksnap_ffs/Makefile
+++ b/sbin/mksnap_ffs/Makefile
@@ -10,9 +10,9 @@ WARNS?= 2
CFLAGS+=-I${.CURDIR}/../mount
.if defined(NOSUID)
-BINMODE=550
+BINMODE=554
.else
-BINMODE=4550
+BINMODE=4554
BINOWN= root
.endif
BINGRP= operator
diff --git a/sbin/shutdown/Makefile b/sbin/shutdown/Makefile
index a6ecb93..905d1bc 100644
--- a/sbin/shutdown/Makefile
+++ b/sbin/shutdown/Makefile
@@ -8,6 +8,6 @@ MLINKS= shutdown.8 poweroff.8
BINOWN= root
BINGRP= operator
-BINMODE=4550
+BINMODE=4554
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud