Can capabilities be specified in Debian packages

capabilitiesdebpackaging

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 %caps).

Is there a similar feature for Debian packages?

Best Answer

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.

Related Question