[systemd-devel] DeviceAllow=/dev/net/tun in [email protected] has no effect

2022-02-21 Thread Gibeom Gwon
Hello, Just out of curiosity, I commented out DeviceAllow=/dev/net/tun rwm in [email protected] and tried running. A failure was expected, but it was not. copy_devnodes() in src/nspawn/nspawn.c executes mknod() on /dev/net/tun, EPERM is expected because DeviceAllow=/dev/net/tun rwm does no

[systemd-devel] DeviceAllow and hotplugged devices/modules

2016-03-13 Thread Yuriy M. Kaminskiy
If 1) service has [Service] DevicePolicy=closed DeviceAllow=char-foobar rw # or "char-*", or "/dev/foobar*" 2) foobar module is not loaded and foobar major is not known to kernel yet at the moment service started, 3) some time after service was started, foobar module is loaded (e.g. t

Re: [systemd-devel] DeviceAllow

2012-12-18 Thread Lennart Poettering
On Mon, 17.12.12 16:50, Juan Orti Alcaine ([email protected]) wrote: > Hello, > > I'm testing some of the security measures described in this post [1], and I'm > having problems with the DeviceAllow directive. > > If I get it right, if I allow one access, all the remaining devices are >

[systemd-devel] DeviceAllow

2012-12-17 Thread Juan Orti Alcaine
Hello, I'm testing some of the security measures described in this post [1], and I'm having problems with the DeviceAllow directive. If I get it right, if I allow one access, all the remaining devices are disallowed. But my tests show otherwise. The man page doesn't talk about this behavior.