]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: warn when private key is stored in world readable files
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Apr 2019 10:26:57 +0000 (19:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 12 Apr 2019 01:12:42 +0000 (10:12 +0900)
src/network/netdev/macsec.c

index 8e25bf6498f2dbace14eae34be03d7058df82a63..15b5378f3068fd8d01725473597aa4944bf2d52a 100644 (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