#1054606 libcap2-bin: Move /sbin/getcap to /bin

Package:
libcap2-bin
Source:
libcap2-bin
Description:
POSIX 1003.1e capabilities (utilities)
Submitter:
Peter Samuelson
Date:
2024-02-10 09:09:03 UTC
Severity:
normal
#1054606#5
Date:
2023-10-26 17:29:16 UTC
From:
To:
In my opinion, getcap(8) is useful to run as a non-root user, so it
should be in /bin rather than /sbin.  This seems analogous to ip(8)
from iproute2, which was moved to /bin many years ago.

Thanks,
Peter

#1054606#10
Date:
2024-02-10 08:32:41 UTC
From:
To:
Hi Peter,

this makes sense in general, but is a bit tricky.

It can't just be moved, as this would break scripts that hard-code
/usr/sbin/getcap.

A symlink wouldn't do much good.

I think what's needed is a move to /bin and a wrapper in /sbin calling
the version in /bin, but emitting a decprecation notice.

However, in the end, this would need to be coordinated by upstream, and
we'd want consistency over all distros. I'll make a ping.

Best,
Christian