locale,firstboot: add headers to vconsole.conf

Closes #29717.
Replaces #29760.

Co-authored-by: cunshunxia <cunshunxia@tencent.com>
This commit is contained in:
Yu Watanabe
2023-10-31 17:15:21 +09:00
co-authored by cunshunxia
parent f155cb6d75
commit 0e7a7cd4e9
6 changed files with 28 additions and 2 deletions
+14
View File
@@ -19,3 +19,17 @@ int write_env_file_label(int dir_fd, const char *fname, char **headers, char **l
return r;
}
int write_vconsole_conf_label(char **l) {
int r;
r = mac_selinux_create_file_prepare("/etc/vconsole.conf", S_IFREG);
if (r < 0)
return r;
r = write_vconsole_conf(AT_FDCWD, "/etc/vconsole.conf", l);
mac_selinux_create_file_clear();
return r;
}
+2
View File
@@ -6,3 +6,5 @@
* for all */
int write_env_file_label(int dir_fd, const char *fname, char **headers, char **l);
int write_vconsole_conf_label(char **l);