[Bug 1612340] Re: document that PrivateTmp does not work for user instances

Dan Streetman 1612340 at bugs.launchpad.net
Wed Jun 30 19:51:37 UTC 2021


please reopen if this is still an issue

** Changed in: systemd (Ubuntu)
       Status: Triaged => Invalid

** Changed in: systemd (Ubuntu)
       Status: Invalid => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1612340

Title:
  document that PrivateTmp does not work for user instances

Status in systemd package in Ubuntu:
  Won't Fix

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



More information about the foundations-bugs mailing list