[Bug 1938886] Re: rrr:no dh_strip or strip loose setuid bit
Dimitri John Ledkov
1938886 at bugs.launchpad.net
Wed Aug 4 17:39:46 UTC 2021
- objcopy/strip changed in 2.36.1, not keeping file attributes of the
original file. Work around that in dh_strip to write to a temporary
file and cat'ing this to the original file to keep the original
attributes.
which is broken for setuid files.
** Also affects: dash (Ubuntu)
Importance: Undecided
Status: New
** Also affects: bash (Ubuntu)
Importance: Undecided
Status: New
** Also affects: linux (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debhelper in Ubuntu.
https://bugs.launchpad.net/bugs/1938886
Title:
rrr:no dh_strip or strip loose setuid bit
Status in bash package in Ubuntu:
New
Status in binutils package in Ubuntu:
New
Status in dash package in Ubuntu:
New
Status in debhelper package in Ubuntu:
New
Status in debugedit package in Ubuntu:
New
Status in linux package in Ubuntu:
New
Status in virtualbox package in Ubuntu:
New
Bug description:
Over at https://launchpadlibrarian.net/550715513/buildlog_ubuntu-
hirsute-amd64.virtualbox_6.1.22-dfsg-2~ubuntu1.21.04.2_BUILDING.txt.gz
I have rebuilt an earlier version of virtualbox, that sets Rules-
Requires-Root: no and added extra ls statements to find where/when/why
setuid bits are getting lost after fixperms.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_strip
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ls -latr debian/virtualbox/usr/lib/virtualbox/VBoxSDL
-rwsr-sr-x 1 buildd buildd 406808 Jul 29 14:34 debian/virtualbox/usr/lib/virtualbox/VBoxSDL
...
dh_strip --dbgsym-migration='virtualbox-dbg'
debugedit: debian/virtualbox/usr/lib/virtualbox/VBoxSDL.so: Unknown DWARF DW_FORM_0x1f20
a7cf3c43c8b18c3261d2d4737a475bf730ad1554
ls -latr debian/virtualbox/usr/lib/virtualbox/VBoxSDL
-rwxr-xr-x 1 buildd buildd 166208 Jul 29 14:35 debian/virtualbox/usr/lib/virtualbox/VBoxSDL
It seems to me that either dh_strip or something it calls (strip,
debugedit) looses the setuid permission in hirsute and up.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1938886/+subscriptions
More information about the foundations-bugs
mailing list