summaryrefslogtreecommitdiffstats
path: root/src/debug-generator/debug-generator.c
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2019-05-20 23:43:53 +0200
committerLennart Poettering <lennart@poettering.net>2019-06-22 19:56:06 +0200
commit4c1567f29aeb60a6741874bca8a8e3a0bd69ed01 (patch)
treeee5208b59a919c35e36a5bb477ef708b75177bde /src/debug-generator/debug-generator.c
parentcgroup-util: kill also threads (diff)
downloadsystemd-4c1567f29aeb60a6741874bca8a8e3a0bd69ed01.tar.xz
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/debug-generator/debug-generator.c')
0 files changed, 0 insertions, 0 deletions