Bug 1729486
Summary: | not all processes are tracked via cgroup | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ondrej <ondrej.valousek> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED NOTABUG | QA Contact: | Frantisek Sumsal <fsumsal> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.5 | CC: | dtardon, jsynacek, systemd-maint-list |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-07-17 08:17:41 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ondrej
2019-07-12 11:58:11 UTC
right. I know the answer. It happens because I start the daemons via: su <service_user> -c command1 su <service_user> -c command2 su <service_user> -c command3 Once I introduced "User=service_user" in my unit file and got rid of the "su", it all started working as I expected. So it looks like there is a way for a process to escape from a cgroup it was started in, right? su opens (via pam_systemd.so) a new scope under the user's slice; every process started by su will run in that scope. So it works as expected. |