Selinux and postalias

Surly it was a test and I failed…

ls -lZ /etc/aliases*
-rw-r--r--. 1 root root unconfined_u:object_r:etc_t:s0  2548  6. Mai 2025  /etc/aliases
-rw-r--r--. 1 root root system_u:object_r:etc_t:s0     12288 21. Mär 2025  /etc/aliases.lmdb
-rw-r--r--. 1 root root unconfined_u:object_r:etc_t:s0  2548  6. Mai 2025  /etc/aliases.YaST2save

/etc/aliases.d:
insgesamt 0

Show

/usr/sbin/matchpathcon /etc/aliases.lmdb
/usr/sbin/matchpathcon /etc/aliases.lmdb
/etc/aliases.lmdb       system_u:object_r:etc_aliases_t:s0

Well, just run

restorecon -v /etc/aliases.lmdb

Thank you. Error is gone!

Do you expect side effects?

Not sure I understand the question.

For some reason this file was not relabeled. I cannot say why. Looking at the git blame, the /etc/aliases.lmdb was added to the SELinux policy in year 2023. I have no explanation why it had the wrong label.

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