- Remove FORBIDDEN

- Add a patch to prevent install suid executable and message about it.

PR:		ports/112754
Submitted by:	Ighighi <ighighi@gmail.com>, Cristian KLEIN <cristi@net.utcluj.ro>
This commit is contained in:
Sergey Matveychuk 2007-08-04 09:33:17 +00:00
parent 86166b35be
commit 89193fb442
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197065
3 changed files with 21 additions and 3 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= eject
PORTVERSION= 1.5
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/OD/ \
ftp://ftp4.jp.FreeBSD.org/pub/FreeBSD-jp/OD/ \
@ -16,8 +16,6 @@ MASTER_SITES= ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/OD/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= Utility for ejecting media from CD or optical disk drive
FORBIDDEN= Setuid root and has security issues
PLIST_FILES= sbin/eject
PORTDOCS= README README-J
@ -31,5 +29,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- Makefile.orig 2007-08-04 13:17:07.000000000 +0400
+++ Makefile 2007-08-04 13:17:14.000000000 +0400
@@ -5,7 +5,7 @@
PROG= eject
BINOWN= root
-BINMODE= 4555
+BINMODE= 555
BINDIR= ${PREFIX}/sbin
MANDIR= ${PREFIX}/man/man

View File

@ -0,0 +1,8 @@
------------------------------------------------------------------------
NOTE: This port is no longer installed with SETUID, because it allows
non-privileged users to unmount a filesystem. To enable your users to
eject the CD-ROM, install security/sudo and enter the following line in
/usr/local/etc/sudoers:
%users ALL=/usr/local/sbin/eject /dev/acd0
------------------------------------------------------------------------