Skip to content
Commit 2b9d87fe authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

rst: Fix creds vs threads restoration



Writing to last_pid sysctl is CAP_SYS_ADMIN potected. Thus restoring
creds before it won't work in all the cases.

Fix this by making all threads restore creds themselves, and the
thread group leader -- after all of them.

Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: default avatarAndrey Vagin <avagin@parallels.com>
parent 762f493b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment