Skip to content

Commit

Permalink
SElinux blocks PS from writing telemetry if semanage is not present
Browse files Browse the repository at this point in the history
(cherry picked from commit b43c182)
  • Loading branch information
surbhat1595 committed Jun 20, 2024
1 parent 9e3f156 commit d18d8f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build-ps/percona-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -800,12 +800,12 @@ fi
%endif
%ifarch x86_64
mkdir -p %{ps_telemetry}
chown mysql:percona-telemetry /usr/local/percona/telemetry/ps
chmod 775 /usr/local/percona/telemetry/ps
chmod g+s /usr/local/percona/telemetry/ps
chmod u+s /usr/local/percona/telemetry/ps
/usr/sbin/semanage fcontext -a -e /var/lib/mysql %{ps_telemetry}
restorecon -RvF %{ps_telemetry}
chown mysql:percona-telemetry %{ps_telemetry}
chmod 775 %{ps_telemetry}
chmod g+s %{ps_telemetry}
chmod u+s %{ps_telemetry}
chcon -t mysqld_db_t %{ps_telemetry}
chcon -u system_u %{ps_telemetry}
%endif
if [ -d /etc/percona-server.conf.d ]; then
CONF_EXISTS=$(grep "percona-server.conf.d" /etc/my.cnf | wc -l)
Expand Down

0 comments on commit d18d8f2

Please sign in to comment.