Author petr.viktorin
Recipients cstratak, petr.viktorin, torsava, vstinner
Date 2017-08-29.09:54:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504000460.34.0.589980580871.issue31132@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2017-08-29 09:54:20petr.viktorinsetrecipients: + petr.viktorin, vstinner, cstratak, torsava
2017-08-29 09:54:20petr.viktorinsetmessageid: <1504000460.34.0.589980580871.issue31132@psf.upfronthosting.co.za>
2017-08-29 09:54:20petr.viktorinlinkissue31132 messages
2017-08-29 09:54:20petr.viktorincreate