FS#68664 - [libcap-ng] [gnome-keyring] gnome-keyring-daemon fails to start after upgrade to libcap-ng 0.8.1
Attached to Project:
Arch Linux
Opened by Jonas Witschel (diabonas) - Wednesday, 18 November 2020, 22:03 GMT
Last edited by David Runge (dvzrv) - Sunday, 28 February 2021, 15:45 GMT
Opened by Jonas Witschel (diabonas) - Wednesday, 18 November 2020, 22:03 GMT
Last edited by David Runge (dvzrv) - Sunday, 28 February 2021, 15:45 GMT
|
Details
After upgrading to libcap-ng 0.8.1-1 in [testing],
gnome-keyring fails to start with the error message
gnome-keyring-daemon: error dropping process capabilities, aborting Downgrading libcap-ng to the previous version 0.8-1 fixes the issue. Additional info: * libcap-ng 0.8.1-1 * gnome-keyring 1:3.36.0-1 Steps to reproduce: 1. Install gnome-keyring and libcap-ng from [testing]: pacman -S gnome-keyring libcap-ng=0.8.1-1 2. Try starting the daemon: gnome-keyring-daemon --start 3. Observe the error message given above. |
This task depends upon
Closed by David Runge (dvzrv)
Sunday, 28 February 2021, 15:45 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with libcap-ng 0.8.2/ gnome-keyring 1:3.36.0-3
Sunday, 28 February 2021, 15:45 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with libcap-ng 0.8.2/ gnome-keyring 1:3.36.0-3
https://gitlab.gnome.org/GNOME/gnome-keyring/-/merge_requests/33
I also opened an upstream pull request https://github.com/stevegrubb/libcap-ng/pull/23 to avoid silent breakage of projects not performing error checking on capng_apply. This won't fix packages like gnome-keyring or cifs-utils (cf.
FS#68666) though, these will have to fixed case by case.For libcap-ng in general, the silent breakage issue has been addressed by https://github.com/stevegrubb/libcap-ng/commit/fda0224fea4f01b77bd07ac195b3baaaf1a28fca and a new release is imminent: https://github.com/stevegrubb/libcap-ng/issues/21#issuecomment-731355287
Fedora apparently has opted to revert the stricter error checking for now to avoid breaking existing applications: https://github.com/stevegrubb/libcap-ng/issues/21#issuecomment-731491583 I don't think this is the way to go for Arch though, instead we should try to fix the applications that depend on libcap-ng.
- ceph: https://github.com/ceph/ceph/blob/d472ab97534090447fd1f4d50bedd323ca80d696/src/mount/mount.ceph.c#L115-L118
- qemu: https://github.com/qemu/qemu/blob/834b9273d5cdab68180dc8c84d641aaa4344b057/fsdev/virtfs-proxy-helper.c#L104-L107
The other packages either don't use capng_apply(CAPNG_SELECT_BOTH), don't do error checking on capng_apply (which will at least apply the normal capabilities with the next libcap-ng release), or seem to be checking for CAP_SETPCAP before using capng_apply(CAPNG_SELECT_BOTH).
FS#68387. That also blocks the python rebuild.FS#68961to reflect that the issue still exists with libcap-ng 0.8.2 that was just pushed to core and probably broke gnome-keyring for a lot of Arch usersThis command solves this problem
gnome-keyring-daemon: error dropping process capabilities, aborting