SELinux has detected a problem --- The source process postalias attempted this access write on this file aliases.lmdb

SELinux has detected a problem.
The source process: postalias
Attempted this access: write
On this file: aliases.lmdb

You need to change the label on aliases.lmdb
# semanage fcontext -a -t FILE_TYPE 'aliases.lmdb'
where FILE_TYPE is one of the following: afs_cache_t, etc_aliases_t, initrc_tmp_t, krb5_host_rcache_t, mailman_data_t, postfix_data_t, postfix_etc_t, postfix_private_t, postfix_prng_t, postfix_spool_t, postfix_var_run_t, puppet_tmp_t, root_t, user_cron_spool_t.
Then execute:
restorecon -v 'aliases.lmdb'

Which of the FILE_TYPE options (afs_cache_t, etc_aliases_t, initrc_tmp_t …) is correct?

BTW, you do not seed to add this context. It is already part of the policy. You simply need to relabel the file so it has the correct label as defined in the policy.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.