spec: Grant cap_setuid/setgid on EL7

See https://github.com/projectatomic/bubblewrap/issues/102
This commit is contained in:
Colin Walters 2016-09-24 11:00:00 -04:00
parent a1922d9f9c
commit eb745575df

View File

@ -40,7 +40,7 @@ find %{buildroot} -name '*.la' -delete -print
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/bwrap
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
%attr(0755,root,root) %caps(cap_sys_admin,cap_net_admin,cap_sys_chroot=ep) %{_bindir}/bwrap
%attr(0755,root,root) %caps(cap_sys_admin,cap_net_admin,cap_sys_chroot,cap_setuid,cap_setgid=ep) %{_bindir}/bwrap
%else
%{_bindir}/bwrap
%endif