libcap2 seems to not work correctly when linked with -Bsymbolic-functions
Bug #2003892 reported by
Danilo Egea Gondolfo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcap2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ubuntu will include -Wl,-Bsymbolic-
One of the autopkgtests that is supposed to prevent an exploitation instance using capabilities fails: https:/
The solution is to exclude this flag from the set of flags:
debian/rules:
export DEB_LDFLAGS_
Debian seems to not be affected by that as they don't include this flag in their build: https:/
Related branches
~danilogondolfo/ubuntu/+source/libcap2:merge-lp2020460-mantic
Ready for review
for merging
into
ubuntu/+source/libcap2:debian/sid
- William Wilson (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 84 lines (+34/-2)4 files modifieddebian/changelog (+26/-0)
debian/control (+2/-1)
debian/rules (+3/-0)
debian/tests/upstream-root (+3/-1)
~danilogondolfo/ubuntu/+source/libcap2:fix_autopkgtest_armhf
Merged
into
ubuntu/+source/libcap2:ubuntu/devel
at
revision 404bd8e13c17db25875f195447634a40444ef4c2
- Ubuntu Sponsors: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 32 lines (+12/-1)2 files modifieddebian/changelog (+9/-0)
debian/tests/upstream-root (+3/-1)
~danilogondolfo/ubuntu/+source/libcap2:lp2003892
Merged
into
ubuntu/+source/libcap2:ubuntu/devel
at
revision 2c16b42bca4e7d371715c6a9e605a98e621c715d
- Lukas Märdian (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 42 lines (+11/-1)3 files modifieddebian/changelog (+6/-0)
debian/control (+2/-1)
debian/rules (+3/-0)
Changed in libcap2 (Ubuntu): | |
status: | New → In Progress |
To post a comment you must log in.
Note: when testing this package with autopkgtest (or sbuild) locally, you need to remove the .git directory (if there is one) or the build will fail. One of the make files will detect the directory exists and set the environment variable DYNAMIC to no. Because of that, static binaries will be generated and the command chrpath in debian/rules will fail.