On Thu, Mar 01, 2018 at 12:49:48PM +0100, Laurent Bigonville wrote: > On package installation, the /var/lib/spamassassin directory ends up > wrongly labeled on disk.
Thanks for this report. > There are two solutions here to fix this problem, either: > > 1) ship the directory in the package itself and do not create it in the > postinst script. This has also the advantage that dpkg -S will return > the owner of the directory. This seems best. > 2) Call restorecon just after creating the directory (before creating > anything else in it), something like: > "which restorecon >/dev/null 2>&1 && restorecon /var/lib/spamassassin" > should work. I don't have much experience with SELinux. Are there any advantages to using restorecon approach? Thanks again. noah
signature.asc
Description: PGP signature

