From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LqJBZ-0001IJ-CA for garchives@archives.gentoo.org; Sun, 05 Apr 2009 03:38:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 39D5FE04A3; Sun, 5 Apr 2009 03:38:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1A1C3E04A3 for ; Sun, 5 Apr 2009 03:38:16 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id A36CA65089 for ; Sun, 5 Apr 2009 03:38:15 +0000 (UTC) Received: from vapier by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1LqJBX-0007im-2Z for gentoo-commits@lists.gentoo.org; Sun, 05 Apr 2009 03:38:15 +0000 From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: games.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: games.eclass X-VCS-Directories: eclass X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: Sender: Mike Frysinger Date: Sun, 05 Apr 2009 03:38:15 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1ab8d9ff-be9c-4950-8dca-01df31f2e0db X-Archives-Hash: f9cd8a6d769424c01e7164b72ba2b82a vapier 09/04/05 03:38:15 Modified: games.eclass Log: make sure we dont set common dirs like /opt/bin and /opt/lib to games o= wner #264872 by Kris Scott Revision Changes Path 1.136 eclass/games.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclas= s?rev=3D1.136&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclas= s?rev=3D1.136&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclas= s?r1=3D1.135&r2=3D1.136 Index: games.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v retrieving revision 1.135 retrieving revision 1.136 diff -u -r1.135 -r1.136 --- games.eclass 8 Mar 2009 13:24:49 -0000 1.135 +++ games.eclass 5 Apr 2009 03:38:14 -0000 1.136 @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.135 2009/03/0= 8 13:24:49 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.136 2009/04/0= 5 03:38:14 vapier Exp $ =20 # devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org # @@ -85,7 +85,18 @@ mode=3Do-rwx,g+r,g-w [[ ${dir} =3D ${GAMES_STATEDIR} ]] && mode=3Do-rwx,g+r find "${D}/${dir}" -type f -print0 | xargs -0 chmod $mode + + # common trees should not be games owned #264872 + if [[ ${dir} =3D=3D "${GAMES_PREFIX_OPT}" ]] ; then + fowners root:root "${dir}" + fperms 755 "${dir}" + for d in $(get_libdir) bin ; do + fowners root:root "${dir}/${d}" + fperms 755 "${dir}/${d}" + done + fi ) &>/dev/null + f=3D$(find "${D}/${dir}" -perm +4000 -a -uid 0 2>/dev/null) if [[ -n ${f} ]] ; then eerror "A game was detected that is setuid root!"