From 5fdac71bd7c91d08193ba7163361720c24d0dfe2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 27 Sep 2017 16:01:25 -0400 Subject: [PATCH] Remove trailing whitespace in default /etc/selinux/config See - basically for libostree (and hence rpm-ostree, and Fedora Editions that use it like Fedora Atomic Host), the Anaconda `selinux --enforcing` verb will end up rewriting `/etc/selinux/config` to the same value it had before. But because of the trailing space character, this generates a difference, and means the config file appears locally modified, and hence deployed systems won't receive updates. I think Anaconda should also be fixed to avoid touching the file *at all* if it wouldn't result in a change, but let's remove the trailing space here too, as it's better to fix in two places. --- selinux-policy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index bbbab847..f0ac8390 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -465,7 +465,7 @@ SELINUX=enforcing # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. -SELINUXTYPE=targeted +SELINUXTYPE=targeted " > /etc/selinux/config