From c90ec2d8c8a12b44c908bf7f80b23059c29f68fa Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 26 Aug 2016 20:54:47 +0200 Subject: [PATCH] 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(). --- src/settings/nm-settings.c | 3 --- 1 file changed, 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