[Bug 2003892] Re: libcap2 seems to not work correctly when linked with -Bsymbolic-functions

Launchpad Bug Tracker 2003892 at bugs.launchpad.net
Mon Feb 27 10:09:17 UTC 2023


This bug was fixed in the package libcap2 - 1:2.66-3ubuntu2

---------------
libcap2 (1:2.66-3ubuntu2) lunar; urgency=medium

  * Skip the test uns_test to fix autopkgtest on armhf.
    It's failing on armhf because we are using an older kernel in the armhf
    builders. This test succeeds on newer versions. Once we upgrade our
    hosts this patch can be dropped. See LP#2003892

 -- Danilo Egea Gondolfo <danilo.egea.gondolfo at canonical.com>  Fri, 03
Feb 2023 11:18:40 +0000

** Changed in: libcap2 (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libcap2 in Ubuntu.
https://bugs.launchpad.net/bugs/2003892

Title:
  libcap2 seems to not work correctly when linked with -Bsymbolic-
  functions

Status in libcap2 package in Ubuntu:
  Fix Released

Bug description:
  Ubuntu will include -Wl,-Bsymbolic-functions in the build flags by
  default. This option seems to break libcap2.

  One of the autopkgtests that is supposed to prevent an exploitation
  instance using capabilities fails:
  https://autopkgtest.ubuntu.com/results/autopkgtest-
  lunar/lunar/amd64/libc/libcap2/20230123_094238_95088@/log.gz

  The solution is to exclude this flag from the set of flags:

  debian/rules:
  export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions

  Debian seems to not be affected by that as they don't include this
  flag in their build:
  https://buildd.debian.org/status/fetch.php?pkg=libcap2&arch=amd64&ver=1%3A2.66-3&stamp=1671660323&raw=0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/2003892/+subscriptions




More information about the foundations-bugs mailing list