]> git.ipfire.org Git - thirdparty/systemd.git/commit
nsresourced: make sure "tun" driver is properly loaded and accessible
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Jun 2025 13:12:25 +0000 (15:12 +0200)
committerMike Yuan <me@yhndnzj.com>
Fri, 13 Jun 2025 22:59:37 +0000 (00:59 +0200)
commit273d14f5ddf5971cb89efb006ffd799a0d267214
tree2d15e2068856ccc3274cacff85bf372b384f46b9
parent7ce370c4666df8fcf5334a31ed9accac7dc657f8
nsresourced: make sure "tun" driver is properly loaded and accessible

We need access to /dev/net/tun, hence make sure we can actually see
/dev/. Also make sure the module is properly loaded before we operate,
given that we run with limit caps. But then again give the CAP_NET_ADMIN
cap, since we need to configure the network tap/tun devices.

Follow-up for: 1365034727b3322e0adf371700cc540a1bcd95c1
units/systemd-nsresourced.service.in