How to do setcap / add capabilities? #5036
-
I am a maintainer for Sunshine, and a user has come to us stating that installation of the rpm fails because it cannot perform the It is required for Sunshine to have certain capabilities set, otherwise it requries running the application as root, with a bunch of other hacks to get it working with pulseaudio. There is a PR to just skip the setcap step (LizardByte/Sunshine#2977) but before that is merged, I want to verify there are no other options. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Instead of using |
Beta Was this translation helpful? Give feedback.
Instead of using
setcap
in a scriptlet, specify it in the filelist using%caps
. See e.g. https://src.fedoraproject.org/rpms/iputils/blob/7ca88c33e6e928bb19fdc12e38663bd750cfc6ea/f/iputils.spec#_73.