[MDEV-21886] MariaDB RPM upgrade overwrites PAM user map Created: 2020-03-06  Updated: 2020-05-06  Resolved: 2020-05-05

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.4.12
Fix Version/s: 10.3.23, 10.4.13

Type: Bug Priority: Major
Reporter: Assen Totin (Inactive) Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None
Environment:

RedHat Linux 7



 Description   

/etc/security/user_map.conf gets overwritten when updating MariaDB-server RPM package from our community repository. Offending package:

[root@mariadb11 assen.totin]# rpm -q MariaDB-server
MariaDB-server-10.4.12-1.el7.centos.x86_64

Hit this on two running systems. This is quite bad, because this file contains user mapping for PAM-based logins. The default file is empty (everything is commented out), so all configured mappings are lost on upgrade. This file must be labelled "config noreplace" in the RPM spec file which will prevent RPM from touching the file if the currently existing one has any alterations.

It is quite possible that all other released packages have this issue, so I'd check all RPM packages built with the same/similar spec file in all supported mainlines. If they contain the same bug, they can be repackaged with an increase of the release number only (as this is change in packaging, not in MariaDB version).


Generated at Thu Feb 08 09:10:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.