locale,firstboot: add headers to vconsole.conf
Closes #29717. Replaces #29760. Co-authored-by: cunshunxia <cunshunxia@tencent.com>
This commit is contained in:
co-authored by
cunshunxia
parent
f155cb6d75
commit
0e7a7cd4e9
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user