Commit 5e4119a
committed
contrib/systemd/labgrid-exporter, doc: document DynamicUser and helpers
The helpers with sudo on exporters cannot be used together with
systemd's DynamicUser. This directive enforces the NoNewPrivileges
directive, which leads to the following error:
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
Since DynamicUser introduced in 0a2deef
("contrib/systemd/labgrid-exporter: improve service") is a useful
feature, switch to User and Group only when using helpers.
Signed-off-by: Tomas Novotny <tomas@novotny.cz>1 parent 872fffb commit 5e4119a
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
382 | 391 | | |
383 | 392 | | |
384 | 393 | | |
| |||
0 commit comments