summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-08-26 20:54:47 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2016-08-26 20:54:47 +0200
commitc90ec2d8c8a12b44c908bf7f80b23059c29f68fa (patch)
tree8401502091dc3775969eaa20e5cc630d1bea21b6
parentf87ca31341f6f2d0999cf3075322f1c5f1b99f64 (diff)
downloadNetworkManager-c90ec2d8c8a12b44c908bf7f80b23059c29f68fa.tar.gz
settings: remove wrong comment about selinux labeling
The code does the right thing as g_file_set_contents() will create the temporary file using the label set by setfscreatecon().
-rw-r--r--src/settings/nm-settings.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c
index 1f691c0bd5..7ea7530a4c 100644
--- a/src/settings/nm-settings.c
+++ b/src/settings/nm-settings.c
@@ -1700,9 +1700,6 @@ write_hostname (NMSettingsPrivate *priv, const char *hostname)
hostname_eol = g_strdup_printf ("%s\n", hostname);
#endif
- /* FIXME: g_file_set_contents() writes first to a temporary file
- * and renames it atomically. We should hack g_file_set_contents()
- * to set the SELINUX labels before renaming the file. */
ret = g_file_set_contents (file, hostname_eol, -1, &error);
#if HAVE_SELINUX