Your message dated Tue, 22 Sep 2020 01:18:42 +0000
with message-id <[email protected]>
and subject line Bug#806521: fixed in fakeroot 1.24.1-1
has caused the Debian Bug report #806521,
regarding fakeroot: add getgroups wrapping
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
806521: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806521
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fakeroot
Version: 1.20.2-1
Severity: wishlist
Hi,
while dealing with #806475 we eventually figured out that while
setgroups is nooped by fakeroot, getgroups isn't handled at all.
Attached is a trivial patch which lets getgroups return always a list
containing only the current (faked) gid. A proper patch would likely
involve saving in setgroups as well, so not marking as +patch – also as
the wrapping of initgroups somehow suggests you don't want to deal with
this at all.
Best regards
David Kalnischkies
--- a/libfakeroot.c
+++ b/libfakeroot.c
@@ -1554,6 +1554,16 @@
return 0;
}
+int getgroups(int size, gid_t list[]){
+ if (fakeroot_disabled)
+ return next_setgroups(size, list);
+ else {
+ if (size > 0)
+ list[0] = get_faked_gid();
+ return 1;
+ }
+}
+
int setgroups(SETGROUPS_SIZE_TYPE size, const gid_t *list){
if (fakeroot_disabled)
return next_setgroups(size, list);
--- a/wrapfunc.inp
+++ b/wrapfunc.inp
@@ -144,6 +144,7 @@
setfsgid;gid_t;(gid_t fsgid);(fsgid)
#endif /* HAVE_SETFSGID */
initgroups;int;(const char *user, INITGROUPS_SECOND_ARG group);(user, group)
+getgroups;int;(int size, gid_t list[]);(size, list)
setgroups;int;(SETGROUPS_SIZE_TYPE size, const gid_t *list);(size, list)
setpriority;int;(int which, int who, int prio);(which, who, prio)
#ifdef HAVE_CAPSET
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: fakeroot
Source-Version: 1.24.1-1
Done: Clint Adams <[email protected]>
We believe that the bug you reported is fixed in the latest version of
fakeroot, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Clint Adams <[email protected]> (supplier of updated fakeroot package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 21 Sep 2020 20:50:35 -0400
Source: fakeroot
Architecture: source
Version: 1.24.1-1
Distribution: unstable
Urgency: medium
Maintainer: Clint Adams <[email protected]>
Changed-By: Clint Adams <[email protected]>
Closes: 736950 806521 959876
Changes:
fakeroot (1.24.1-1) unstable; urgency=medium
.
[ Matt Weber ]
* Select TCP when lack of SYSV IPC.
.
[ Norbert Lange ]
* Fix fchownat and fchmod with empty path. closes: #959876
.
[ Quanah Gibson-Mount ]
* Fix namespace collision that can occur if the outside environment
already has a variable named LIB defined.
.
[ Clint Adams ]
* Patch to wrap getgroups() from David Kalnischkies.
closes: #806521.
* Patch from Igor Pashev to fix ACLs on Dyson.
closes: #736950.
* Drop hide-dlsym-error.patch; obsoleted by Dyson patch.
Checksums-Sha1:
2f26d723895ff265f7757a33c5f91642496c1240 1971 fakeroot_1.24.1-1.dsc
d132476fa78fdd10a32d72d07998531951f6d90c 111873 fakeroot_1.24.1.orig.tar.gz
fb33d938e95f7de218d07a9fcfcbc1202589abf7 22500 fakeroot_1.24.1-1.debian.tar.xz
21d80f396b44849c542c2e506fd7c9e322b3a390 5603
fakeroot_1.24.1-1_source.buildinfo
Checksums-Sha256:
4af787063ecc4b89019fbb65b89805349fb7c68fe485d09ffd834dbde28ba56b 1971
fakeroot_1.24.1-1.dsc
703164d33c3da92f0551431a933acf47d57c9d80017b62926c48e69bade97189 111873
fakeroot_1.24.1.orig.tar.gz
c4022c6beaf6f5250804723438360d6790e455086a93710f4579590c8d4e3afa 22500
fakeroot_1.24.1-1.debian.tar.xz
78fc8737886d5cee9217949c985a0f14f1c77009b0ed5699462b95d576dd9da3 5603
fakeroot_1.24.1-1_source.buildinfo
Files:
ce76132158c538d0e6e9eb30d0786f1e 1971 utils optional fakeroot_1.24.1-1.dsc
9d54ce34ce8f30e2872856f889ea6a46 111873 utils optional
fakeroot_1.24.1.orig.tar.gz
b991162d8fb85462b8a5b3e68faf36e8 22500 utils optional
fakeroot_1.24.1-1.debian.tar.xz
4a1de97aedef09e2a3bf9cabb487f1c9 5603 utils optional
fakeroot_1.24.1-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEEdYHsh0BT5sgHeRubVZIzHhmdOKgFAl9pTLARHGNsaW50QGRl
Ymlhbi5vcmcACgkQVZIzHhmdOKjG3RAAquDPkxaBZV08jsT1x+a4vHSwBU2YE2Q+
4ioSG9OGcfFgLdHPtI9nLc2NnR4GAUUpGeFoLNR+stjCYSsyH7fi2J/QctG9Nxc3
9dAzIj2Txtw8zTZ8qeKLXtSUEp/KqFPvEh9t6ZJr3Kl63APVNh6Hqq6bG5Xja+tZ
ZA5VBKiFybwRCYQIiExg5Hq67Z/aXRQZxUiuOswIx3yjpIzgTsEA8K39PiToqXZr
vgAXwKgAmSYilO2xtO64uqwio+0Ibn6cYEXEjup3H3uYJUyNoZZY4AQClUMWAX+8
ejSQMfFiDZtTOz+kUisDQKFOmuZp+//+JkovaRxh+Z3yt6g92QsD9a/tUBchrnWK
bwNSXxXELX9rzvMuhzMwX7XWT8odnbn0qUPBfCGOUQtCBvMjvVnjOfkRK9fDqUIq
XUX5OVOK8/Zz25THyDjS9SJbQG+t2JBWOJ26y1JXOP/PgxbXAg4vWI4jhMg9ugox
r+Aok1ErL/pJlq5gvWk0anTw4xCE1tTa6HnTOzeRjUgQUiJJZmVPC7V1QePr1bXx
FRZ8sWmWS1l3ws9W8OWQQYKqwqJ9Nb/nZFsU3Ez/xOCcSZ57QonUhWfIw2YOjqOI
kCXaIcyInYUAlyTYOqlW9xYGH9bdXMnWsaWO7G40c13Ay1EcL+9roxj8kZ1d+SWt
eoTVnr+zKEo=
=B0XH
-----END PGP SIGNATURE-----
--- End Message ---