Fix the SYS_NICE capabilities; #1540946
This commit is contained in:
parent
b8a0c7c0ea
commit
756300c903
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
Name: community-mysql
|
Name: community-mysql
|
||||||
Version: 8.0.12
|
Version: 8.0.12
|
||||||
Release: 1%{?with_debug:.debug}%{?dist}
|
Release: 2%{?with_debug:.debug}%{?dist}
|
||||||
Summary: MySQL client programs and shared libraries
|
Summary: MySQL client programs and shared libraries
|
||||||
URL: http://www.mysql.com
|
URL: http://www.mysql.com
|
||||||
|
|
||||||
@ -281,6 +281,9 @@ Requires: systemd
|
|||||||
# Make sure it's there when scriptlets run, too
|
# Make sure it's there when scriptlets run, too
|
||||||
%{?systemd_requires: %systemd_requires}
|
%{?systemd_requires: %systemd_requires}
|
||||||
%endif
|
%endif
|
||||||
|
# SYS_NICE capabilities; #1540946
|
||||||
|
Recommends: libcap
|
||||||
|
|
||||||
%if %{with mysql_names}
|
%if %{with mysql_names}
|
||||||
Provides: mysql-server = %{sameevr}
|
Provides: mysql-server = %{sameevr}
|
||||||
Provides: mysql-server%{?_isa} = %{sameevr}
|
Provides: mysql-server%{?_isa} = %{sameevr}
|
||||||
@ -719,6 +722,10 @@ fi
|
|||||||
semanage fcontext -a -t mysqld_log_t '/var/log/mysql(/.*)?'
|
semanage fcontext -a -t mysqld_log_t '/var/log/mysql(/.*)?'
|
||||||
restorecon -r %{logfiledir}
|
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
|
%preun server
|
||||||
%if %{with init_systemd}
|
%if %{with init_systemd}
|
||||||
@ -941,6 +948,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Aug 01 2018 Norvald H. Ryeng <norvald.ryeng@oracle.com> - 8.0.12-1
|
||||||
- Update to MySQL 8.0.12
|
- Update to MySQL 8.0.12
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user