Bug 1989853

Summary: mariadb-10.3: /etc/security/user_map.conf getting overwritten with mariadb-server upgrade
Product: Red Hat Enterprise Linux 8 Reporter: Lukas Javorsky <ljavorsk>
Component: mariadbAssignee: Michal Schorm <mschorm>
Status: CLOSED DUPLICATE QA Contact: RHEL CS Apps Subsystem QE <rhel-cs-apps-subsystem-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: databases-maint, hhorak
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-15 13:57:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukas Javorsky 2021-08-04 08:30:52 UTC
This bug was initially created as a copy of Bug #1989534

The same issue is present in all MariaDB packages across the RHEL

Description of problem:
/etc/security/user_map.conf getting overwritten with mariadb-server upgrade

Version-Release number of selected component (if applicable):
The file seem start come with the following version
mariadb-server-3:10.3.27-3.module+el8.3.0+8972+5e3224e9
and issue with 
mariadb-server-3:10.3.28-1.module+el8.3.0+10472+7adc332a

How reproducible:
Yes, try make change to the file /etc/security/user_map.conf and yum update mariadb

Steps to Reproduce:
1. Install mariadb-server-3:10.3.27-3.module+el8.3.0+8972+5e3224e9
2. make change to the file /etc/security/user_map.conf
3. update mariadb-server-3:10.3.28-1.module+el8.3.0+10472+7adc332a

Actual results:
The file has been overwrited.

Expected results:
The file should not overwrite.

Additional info:
It seem that upstream aware of the issue and fixed in 10.3.23 & 10.4.13. 
https://jira.mariadb.org/browse/MDEV-21886
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.