1
0
mirror of https://github.com/systemd/systemd synced 2024-07-09 04:26:06 +00:00

network: drop redundant warning

If file is world readable, then `read_full_file_full()` will warn
about that.
This commit is contained in:
Yu Watanabe 2022-06-10 09:12:55 +09:00 committed by Luca Boccassi
parent b2e8f2d853
commit d5ad2ec1d4
2 changed files with 0 additions and 4 deletions

View File

@ -970,8 +970,6 @@ static int macsec_read_key_file(NetDev *netdev, SecurityAssociation *sa) {
if (!sa->key_file)
return 0;
(void) warn_file_is_world_accessible(sa->key_file, NULL, NULL, 0);
r = read_full_file_full(
AT_FDCWD, sa->key_file, UINT64_MAX, SIZE_MAX,
READ_FULL_FILE_SECURE | READ_FULL_FILE_UNHEX | READ_FULL_FILE_WARN_WORLD_READABLE | READ_FULL_FILE_CONNECT_SOCKET,

View File

@ -1085,8 +1085,6 @@ static int wireguard_read_key_file(const char *filename, uint8_t dest[static WG_
assert(dest);
(void) warn_file_is_world_accessible(filename, NULL, NULL, 0);
r = read_full_file_full(
AT_FDCWD, filename, UINT64_MAX, SIZE_MAX,
READ_FULL_FILE_SECURE | READ_FULL_FILE_UNBASE64 | READ_FULL_FILE_WARN_WORLD_READABLE | READ_FULL_FILE_CONNECT_SOCKET,