On Fedora 21, I created a unit file in which I included 'PrivateDevices=true'. When I attempt to start the unit from the text console, the unit fails, and 'systemctl status -l' reports:
startx[2754]: (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) When I take 'PrivateDevices=true' out of the unit file, it works fine. The man page for systemd.exec reads PrivateDevices= Takes a boolean argument. If true, sets up a new /dev namespace for the executed processes and only adds API pseudo devices such as /dev/null, /dev/zero or /dev/random (as well as the pseudo TTY subsystem) to it, but no physical devices such as /dev/sda. Isn't /dev/tty0 a pseudo TTY? Shouldn't a service that has 'PrivateDevices=true' be able to access /dev/tty0? I'm willing to investigate further to see if there's a bug, but want to make sure that I understand the expected behavior first Best wishes, Alison -- Alison Chaiken ali...@she-devel.com 650-279-5600 http://{she-devel.com, exerciseforthereader.org} Never underestimate the cleverness of advertisers, or mischief makers, or criminals. -- Don Norman
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel