network: warn when private key is stored in world readable files

This commit is contained in:
Yu Watanabe 2019-04-10 19:26:57 +09:00
parent b0e13c3122
commit 70c5754761

View File

@ -730,6 +730,8 @@ int config_parse_macsec_key(
assert(rvalue);
assert(data);
(void) warn_file_is_world_accessible(filename, NULL, unit, line);
if (streq(section, "MACsecTransmitAssociation"))
r = macsec_transmit_association_new_static(s, filename, section_line, &a);
else