wpa_supplicant.conf 选项“update_config=1”记录在哪里?

wpa_supplicant.conf 选项“update_config=1”记录在哪里?

首先,我知道该选项的作用。根据 Arch Linux Wiki,它授予命令行“wpa_cli”实用程序的权限改写wpa_supplicant.conf:

警告:将 update_config 设置为 1 允许 wpa_supplicant 覆盖配置文件。覆盖时,wpa_supplicant将根据您的默认umask重置文件权限。如果您的系统是多用户系统,它可能会意外地使每个人都可以读取该文件,从而暴露您的密码。

但 Arch Linux wiki 是我能找到的最接近此功能的权威描述的。它没有出现在任何手册页中wpa_请求者,包括以下内容:wpa_cli(8)、wpa_supplicant(8) 和 wpa_supplicant.conf(5)。

该功能的官方文档在哪里?我担心的是,如果它确实是一个仅出现在源代码中的“未记录”功能,那么任何开发人员都可以在未来的版本中简单地编辑或禁用该功能。

答案1

该选项似乎记录在示例配置文件项目的网站:

# Whether to allow wpa_supplicant to update (overwrite) configuration
#
# This option can be used to allow wpa_supplicant to overwrite configuration
# file whenever configuration is changed (e.g., new network block is added with
# wpa_cli or wpa_gui, or a password is changed). This is required for
# wpa_cli/wpa_gui to be able to store the configuration changes permanently.
# Please note that overwriting configuration file will remove the comments from
# it.
#update_config=1

正如该项目网站上所记录的那样,我认为该选项在一段时间内不会消失。

相关内容