Bugzilla – Bug 1205820
sed command in %post section causes issues on SELinux systems
Last modified: 2022-11-28 15:52:52 UTC
This line 445 sed -i -E "s/(btree|hash):/lmdb:/g" %{pf_config_directory}/{main.cf,master.cf} causes issues on SELinux enabled system. Sed creates a tmp file, which receives tmp_t as type. After that postfix fails on systems with selinux. You need to restore the proper types with something like: if selinuxenabled then; restorecon %{pf_config_directory}/{main.cf,master.cf} fi after the sed command