diff options
author | sem <sem@FreeBSD.org> | 2007-08-04 17:33:17 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2007-08-04 17:33:17 +0800 |
commit | 048410e60b87f160887688133333ac6d75d55f60 (patch) | |
tree | c42530155aa2927c10abd5f34dbbdb8d28e99dee | |
parent | 15176c5a6a5af3e4d0afde2c419212585e6084bf (diff) | |
download | freebsd-ports-gnome-048410e60b87f160887688133333ac6d75d55f60.tar.gz freebsd-ports-gnome-048410e60b87f160887688133333ac6d75d55f60.tar.zst freebsd-ports-gnome-048410e60b87f160887688133333ac6d75d55f60.zip |
- 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>
-rw-r--r-- | sysutils/eject/Makefile | 5 | ||||
-rw-r--r-- | sysutils/eject/files/patch-Makefile | 11 | ||||
-rw-r--r-- | sysutils/eject/pkg-message | 8 |
3 files changed, 21 insertions, 3 deletions
diff --git a/sysutils/eject/Makefile b/sysutils/eject/Makefile index d85bea18ba4f..afb16bedf3be 100644 --- a/sysutils/eject/Makefile +++ b/sysutils/eject/Makefile @@ -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> diff --git a/sysutils/eject/files/patch-Makefile b/sysutils/eject/files/patch-Makefile new file mode 100644 index 000000000000..2d271c850b9e --- /dev/null +++ b/sysutils/eject/files/patch-Makefile @@ -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 diff --git a/sysutils/eject/pkg-message b/sysutils/eject/pkg-message new file mode 100644 index 000000000000..991dd8dacc0a --- /dev/null +++ b/sysutils/eject/pkg-message @@ -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 +------------------------------------------------------------------------ |