Upstream issue: https://github.com/systemd/systemd/issues/3944
** Bug watch added: github.com/systemd/systemd/issues #3944 https://github.com/systemd/systemd/issues/3944 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1612340 Title: systemd user instance doesn't respect PrivateTmp option in unit file Status in systemd package in Ubuntu: New Bug description: When setting the option PrivateTmp to "yes" in a unit file, I expect that files created by the service shouldn't be visible to the outside world. To reproduce: $ systemctl --user edit --full privatetmpdir.service [Unit] Description=TestService [Service] Type=oneshot ExecStart=/usr/bin/touch /tmp/1234.txt PrivateTmp=yes $ ls /tmp/1234.txt ls: cannot access '/tmp/1234.txt': No such file or directory $ systemctl --user restart privatetmpdir.service $ ls /tmp/1234.txt /tmp/1234.txt here i expect there to not be a file "/tmp/1234.txt", but there is. Running the same unit file on the system systemd behaves as expected, the file in /tmp is not visible to the outside world. Ubuntu 16.04.1 LTS Kernel: 4.4.0-34-generic Package: systemd Version: 229-4ubuntu7 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1612340/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

