[PATCH 0/2] Fix clobbered wpa conf file symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



wpa_supplicant conf file updates do not account for the case where the file is a 
symlink. The use of rename() for atomic-like updates discards the symlink in 
this case. This patch-set fixes the issue by ensuring the link target is
replaced instead of the symbolic link file itself.

Andrew Beltrano (2):
  Add helper function to read file link targets.
  Use wpa conf file link target for writing.

 src/utils/common.c           | 29 +++++++++++++++++++++++++++++
 src/utils/common.h           |  2 ++
 wpa_supplicant/config_file.c | 15 +++++++++++++--
 3 files changed, 44 insertions(+), 2 deletions(-)

-- 
2.20.1
_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux