Commit 11f3e236 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-19876 pam v2: auth_pam_tool_dir and auth_pam_tool permissions are wrong in RPMs

unconditionally set correct filesystem ownership/permissions for the PAM v2 plugin
in all cases, be it install, reinstall, or upgrade
parent c9f0f888
......@@ -68,6 +68,12 @@ if [ $1 = 1 ] ; then
chmod -R og-rw $datadir/mysql
fi
# Set correct filesystem ownership/permissions for the PAM v2 plugin
chown %{mysqld_group} /usr/lib*/mysql/plugin/auth_pam_tool_dir
chmod 0700 /usr/lib*/mysql/plugin/auth_pam_tool_dir
chown 0 /usr/lib*/mysql/plugin/auth_pam_tool_dir/auth_pam_tool
chmod 04755 /usr/lib*/mysql/plugin/auth_pam_tool_dir/auth_pam_tool
# install SELinux files - but don't override existing ones
SETARGETDIR=/etc/selinux/targeted/src/policy
SEDOMPROG=$SETARGETDIR/domains/program
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment