View Issue Details

IDProjectCategoryView StatusLast Update
0000122AlmaLinux-8libcap-ngpublic2021-10-22 09:24
Reportersteen.schutt Assigned Toalukoshko  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformplatform:el8OSAlmaLinuxOS Version8.4
Summary0000122: setpriv: libcap-ng is too old for "all" caps
DescriptionWhen using setpriv to drop privileges, it will fail and complain with the error message "setpriv: libcap-ng is too old for "all" caps". This issue does not appear on our CentOS 8.4 VM's, but appears after running the AlmaLinux conversion script. Both the CentOS 8 and AlmaLinux 8 systems are fully up to date as of 2021-09-01 07:43:00 UTC.
Steps To Reproducesetpriv --reuid="1000" --regid="1000" --clear-groups --inh-caps=-all -- bash
Additional InformationI found others having similar issues on Arch Linux in the past, see this ticket: https://bugs.archlinux.org/task/67781

Here is some of the information the Arch team requested, in case it's helpful:

# uname -a
Linux testbox 4.18.0-305.12.1.el8_4.x86_64 #1 SMP Tue Aug 10 15:40:55 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
# cat /proc/sys/kernel/cap_last_cap
39
# grep -B2 'CAP_LAST_CAP' /usr/include/linux/capability.h
#define CAP_BPF 39

#define CAP_LAST_CAP CAP_BPF
TagsAlmaLinux, Bug
abrt_hash
URL

Activities

steen.schutt

2021-09-01 08:03

reporter   ~0000327

I should add that I'm running setpriv as root.

Package versions are as follows:
libcap-ng-0:0.7.9-5.el8.x86_64
util-linux-0:2.32.1-27.el8.x86_64

steen.schutt

2021-09-24 07:30

reporter   ~0000337

Issue is resolved after updating from util-linux-2.32.1-27.el8.x86_64 to util-linux-2.32.1-27.el8.alma.x86_64.

alukoshko

2021-10-22 09:24

developer   ~0000359

Thanks for update. Closing.

Issue History

Date Modified Username Field Change
2021-09-01 07:44 steen.schutt New Issue
2021-09-01 07:44 steen.schutt Tag Attached: AlmaLinux
2021-09-01 07:44 steen.schutt Tag Attached: Bug
2021-09-01 08:03 steen.schutt Note Added: 0000327
2021-09-24 07:30 steen.schutt Note Added: 0000337
2021-10-22 09:24 alukoshko Assigned To => alukoshko
2021-10-22 09:24 alukoshko Status new => closed
2021-10-22 09:24 alukoshko Resolution open => fixed
2021-10-22 09:24 alukoshko Note Added: 0000359