Bug#986905: IPAccounting=yes does not work for systemd-run --user
Ryutaroh Matsumoto
ryutaroh at ict.e.titech.ac.jp
Fri Apr 16 05:07:27 BST 2021
Control: retitle -1 IPAccounting=yes does not work for systemd-run --user
A real inconvenience of 986905 is that IPAccounting does not work for
any process under systemd --user by non-root. For example,
ryutaroh at raspi4b8gb:~$ systemd-run --user --scope --unit=test -p "IPAccounting=yes" sh -c 'wget -O /dev/null http://www.debian.org/ ; sleep 100; exit 0' &
[1] 1821
Running scope as unit: test.scope
ryutaroh at raspi4b8gb:~$ systemctl --user status test.scope
● test.scope - /bin/sh -c wget -O /dev/null http://www.debian.org/ ; sleep 100; exit 0
Loaded: loaded (/run/user/1000/systemd/transient/test.scope; transient)
Transient: yes
Active: active (running) since Fri 2021-04-16 13:00:05 JST; 21s ago
IP: 0B in, 0B out
IO: 696.0K read, 0B written
Tasks: 2 (limit: 9028)
Memory: 1.2M
CPU: 123ms
CGroup: /user.slice/user-1000.slice/user at 1000.service/app.slice/test.scope
├─1821 /bin/sh -c wget -O /dev/null http://www.debian.org/ ; sleep 100; exit 0
└─1831 sleep 100
IP Accounting information is clearly incorrect above.
Is it expected to work???
Best regards, Ryutaroh
More information about the Pkg-systemd-maintainers
mailing list