Commit 2ad2925
execute: respect selinux_context_ignore
When `SELinuxContext=` parameter is prefixed with `-`, the documentation states
that any errors determining or changing context should be ignored, but this
doesn't actually happen and the service may fail with `229/SELINUX_CONTEXT`.
Fix by adding checks to `context->selinux_context_ignore`.
Closes: systemd#210571 parent 6b64d74 commit 2ad2925
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4566 | 4566 | | |
4567 | 4567 | | |
4568 | 4568 | | |
4569 | | - | |
| 4569 | + | |
4570 | 4570 | | |
4571 | 4571 | | |
4572 | 4572 | | |
| |||
4700 | 4700 | | |
4701 | 4701 | | |
4702 | 4702 | | |
4703 | | - | |
| 4703 | + | |
4704 | 4704 | | |
4705 | 4705 | | |
4706 | 4706 | | |
| |||
0 commit comments