Message300979
The test is already skipped if the user is root. It verifies that process 1 can't be touched by non-root users.
The problem is an assumption that process with PID 1 belongs to root. That assumption isn't true in containers: PID 1 is whatever the container was started with -- in this case, likely a test runner or build system.
On Linux, we could check if `/proc/1` actually belongs to root. I don't know about other systems, though.
Would that change be acceptable? |
|
Date |
User |
Action |
Args |
2017-08-29 09:54:20 | petr.viktorin | set | recipients:
+ petr.viktorin, vstinner, cstratak, torsava |
2017-08-29 09:54:20 | petr.viktorin | set | messageid: <1504000460.34.0.589980580871.issue31132@psf.upfronthosting.co.za> |
2017-08-29 09:54:20 | petr.viktorin | link | issue31132 messages |
2017-08-29 09:54:20 | petr.viktorin | create | |
|