Since RPM 4.7, there has been the ability to specify that a file in an RPM package should be installed with capabilities set (via
Is there a similar feature for Debian packages?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Sadly, no. There isn't a way to make
dpkg use file capabilities, and apparently nobody has ever asked, though the library itself is available.
I skimmed through the Debian Policy Manual, and there isn't a single entry that reference this feature. That said, you can use
dh_override_install (if you use
debhelper), pre/post maintainer scripts or modifying the
debian/rules file to reproduce this behavior, but I don't see any obviously easy way to implement it.