HardenedBSD/sbin/mksnap_ffs/Makefile
Neel Natu f518456fdb 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
2014-08-21 19:04:15 +00:00

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>