Files
Brendan Creane 1f20c0bfd5 net/dns,tstest/natlab/vmtest: label resolv.conf temp file before rename (#22516)
In direct mode the restorecon added in #20167 runs after the rename, so
/etc/resolv.conf briefly carries the temp file's etc_t label. A service
that watches /etc with inotify, such as sssd_be, re-arms its watch on the
file inside that window and SELinux denies it. Run restorecon on the temp
file first. The policy file-context regex /etc/resolv\.conf.* matches the
temp name and rename(2) keeps the inode's label, so the file is net_conf_t
from the moment it appears. The post-rename relabel stays for the
backup-restore path.

Add a natlab vmtest on Fedora that records the label at each rename.

Fixes #22418

Signed-off-by: Brendan Creane <[email protected]>
2026-11-24 09:05:32 -08:00
..
2026-07-10 17:39:16 -07:00