aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-06-23 11:22:18 +0200
committerUlrich Müller <ulm@gentoo.org>2018-06-23 11:22:18 +0200
commit294f1a18f3271f7d506d346c2a514a2afa6ce8ec (patch)
treecd010d06e73d12f42d39adb3c0ee349b45233a1a
parentetc-update: add archarm to arch OS_FAMILY (diff)
downloadportage-294f1a18f3271f7d506d346c2a514a2afa6ce8ec.tar.gz
portage-294f1a18f3271f7d506d346c2a514a2afa6ce8ec.tar.bz2
portage-294f1a18f3271f7d506d346c2a514a2afa6ce8ec.zip
Revert "_post_src_install_uid_fix: allow files with portage group permissions (bug 600804)"
This reverts commit f479a4cdcac5db92231f489f232f10eb934c6f12. Acked by zmedico in #gentoo-portage. Bug: https://bugs.gentoo.org/600804
-rw-r--r--pym/portage/package/ebuild/doebuild.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
index 0e94de805..97a9199a3 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -2045,7 +2045,7 @@ def _postinst_bsdflags(mysettings):
def _post_src_install_uid_fix(mysettings, out):
"""
Files in $D with user and group bits that match the "portage"
- user and group are automatically mapped to PORTAGE_INST_UID and
+ user or group are automatically mapped to PORTAGE_INST_UID and
PORTAGE_INST_GID if necessary. The chown system call may clear
S_ISUID and S_ISGID bits, so those bits are restored if
necessary.
@@ -2191,11 +2191,8 @@ def _post_src_install_uid_fix(mysettings, out):
mystat.st_ino not in counted_inodes:
counted_inodes.add(mystat.st_ino)
size += mystat.st_size
-
- # Only remap the UID/GID if both match the portage user,
- # in order to avoid interference with ebuilds that install
- # files with portage group permissions (see bug 600804).
- if (mystat.st_uid, mystat.st_gid) != (portage_uid, portage_gid):
+ if mystat.st_uid != portage_uid and \
+ mystat.st_gid != portage_gid:
continue
myuid = -1
mygid = -1