From 756300c9034c6bb4d18ad56f77ba8af7bdee760d Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Thu, 6 Sep 2018 07:17:11 +0200 Subject: [PATCH] Fix the SYS_NICE capabilities; #1540946 --- community-mysql.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/community-mysql.spec b/community-mysql.spec index c00d817..81f82b0 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -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 - 8.0.12-2 +- Fix the SYS_NICE capabilities + Related: #1540946 + * Wed Aug 01 2018 Norvald H. Ryeng - 8.0.12-1 - Update to MySQL 8.0.12