Fix the SYS_NICE capabilities; #1540946

This commit is contained in:
Michal Schorm 2018-09-06 07:17:11 +02:00
parent b8a0c7c0ea
commit 756300c903

View File

@ -80,7 +80,7 @@
Name: community-mysql
Version: 8.0.12
Release: 1%{?with_debug:.debug}%{?dist}
Release: 2%{?with_debug:.debug}%{?dist}
Summary: MySQL client programs and shared libraries
URL: http://www.mysql.com
@ -281,6 +281,9 @@ Requires: systemd
# Make sure it's there when scriptlets run, too
%{?systemd_requires: %systemd_requires}
%endif
# SYS_NICE capabilities; #1540946
Recommends: libcap
%if %{with mysql_names}
Provides: mysql-server = %{sameevr}
Provides: mysql-server%{?_isa} = %{sameevr}
@ -719,6 +722,10 @@ fi
semanage fcontext -a -t mysqld_log_t '/var/log/mysql(/.*)?'
restorecon -r %{logfiledir}
# Enable the SYS_NICE capablilities; #1540946
if [ -e "/usr/sbin/setcap" ] ; then
setcap cap_sys_nice+ep /usr/libexec/mysqld
fi
%preun server
%if %{with init_systemd}
@ -941,6 +948,10 @@ fi
%endif
%changelog
* Thu Sep 06 2018 Michal Schorm <mschorm@redhat.com> - 8.0.12-2
- Fix the SYS_NICE capabilities
Related: #1540946
* Wed Aug 01 2018 Norvald H. Ryeng <norvald.ryeng@oracle.com> - 8.0.12-1
- Update to MySQL 8.0.12