mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 18:10:26 +01:00
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().
This commit is contained in:
parent
f87ca31341
commit
c90ec2d8c8
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue