mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
7b634f01b1
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.
21 lines
262 B
Makefile
21 lines
262 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../mount
|
|
|
|
PROG= mksnap_ffs
|
|
SRCS= mksnap_ffs.c getmntopts.c
|
|
MAN= mksnap_ffs.8
|
|
|
|
WARNS?= 2
|
|
CFLAGS+=-I${.CURDIR}/../mount
|
|
|
|
.if defined(NOSUID)
|
|
BINMODE=554
|
|
.else
|
|
BINMODE=4554
|
|
BINOWN= root
|
|
.endif
|
|
BINGRP= operator
|
|
|
|
.include <bsd.prog.mk>
|