Add 10. and 192.168. as default whitelist entries to tallow.

These entries can be removed from the whitelist by adding any
whitelist entry to the config file. If you add any entry, you
must repeat these in order to have them included, otherwise those
entries are not added to the custom list.
This commit is contained in:
Auke Kok
2018-10-04 11:28:58 -07:00
parent 4ff1206974
commit e2f92ff75b
5 changed files with 12 additions and 7 deletions
+4 -1
View File
@@ -394,8 +394,11 @@ int main(void)
if (!has_ipv6)
fprintf(stdout, "ipv6 support disabled.\n");
if (!whitelist)
if (!whitelist) {
whitelist_add("127.0.0.1");
whitelist_add("192.168.");
whitelist_add("10.");
}
r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY);
if (r < 0) {