diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2019-05-20 14:43:53 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-06-22 19:56:06 +0200 |
commit | 4c1567f29aeb60a6741874bca8a8e3a0bd69ed01 (patch) | |
tree | ee5208b59a919c35e36a5bb477ef708b75177bde /src/journal | |
parent | e48fcfef06d81bf08607d3c1657fdc6aa1e9a6ee (diff) | |
download | systemd-4c1567f29aeb60a6741874bca8a8e3a0bd69ed01.tar.gz systemd-4c1567f29aeb60a6741874bca8a8e3a0bd69ed01.tar.bz2 systemd-4c1567f29aeb60a6741874bca8a8e3a0bd69ed01.zip |
bpf-firewall: optimization for IPAddressXYZ="any" (and unprivileged users)
This is a workaround to make IPAddressDeny=any/IPAddressAllow=any work
for non-root users that have CAP_NET_ADMIN. "any" was chosen since
all or nothing network access is one of the most common use cases for
isolation.
Allocating BPF LPM TRIE maps require CAP_SYS_ADMIN while BPF_PROG_TYPE_CGROUP_SKB
only needs CAP_NET_ADMIN. In the case of IPAddressXYZ="any" we can just
consistently return false/true to avoid allocating the map and limit the user
to having CAP_NET_ADMIN.
Diffstat (limited to 'src/journal')
0 files changed, 0 insertions, 0 deletions