Joerg Schilling [21.07.2016 10:41]:
Werner Flamme
wrote: When I execute "zypper in cdrtools", I get some other packages as well. Something seems to be wrong with the cdrecord package:
(6/8) Installing: cdrecord-3.01-1.5.x86_64 .................................................................................................................................................................[done] Additional rpm output: setting /usr/bin/cdrecord to root:root 0755 "= cap_ipc_lock,cap_sys_rawio,cap_sys_nice,cap_sys_resource+ep". (wrong missing capabilities)
The documented capability set is:
setcap cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep /opt/schily/bin/cdrecord setcap cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep /opt/schily/bin/cdda2wav setcap cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep /opt/schily/bin/readcd
Thank you, the commands work for the files in the packages (one line per command): # setcap cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep /usr/bin/cdrecord # setcap cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep /usr/bin/cdda2wav # setcap cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep /usr/bin/readcd They are system packages, so they won't install to /opt/schily, I guess ;) So I'll file a bug report, since the package seems to have a wrong command inside. Hm, in the spec file https://build.opensuse.org/package/view_file/openSUSE:Leap:42.1/cdrtools/cdr... I see the caps (lines 58-60) written with = instead of +. Should this be changed? I am not familiar with the setcap program. Werner --