Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

child: reconfigure Pdeathsig (release v0.4.1) #66

Merged
merged 3 commits into from
May 15, 2019

Conversation

AkihiroSuda
Copy link
Member

The parent calls child with Pdeathsig, but it is cleared when newuidmap SUID binary is called
#65 (comment)

Signed-off-by: Akihiro Suda akihiro.suda.cz@hco.ntt.co.jp

The parent calls child with Pdeathsig, but it is cleared when newuidmap SUID binary is called
rootless-containers#65 (comment)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda changed the title child: reconfigure Pdeathsig child: reconfigure Pdeathsig (release v0.4.1) May 14, 2019
@AkihiroSuda AkihiroSuda merged commit ba908f9 into rootless-containers:master May 15, 2019
AkihiroSuda added a commit to AkihiroSuda/docker that referenced this pull request May 15, 2019
Now the child process is killed when the parent dies (rootless-containers/rootlesskit#66)

rootless-containers/rootlesskit@e92d5e7...27a0c7a

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
AkihiroSuda added a commit to AkihiroSuda/buildkit_poc that referenced this pull request May 15, 2019
Now the child process is killed when the parent dies (rootless-containers/rootlesskit#66)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request May 15, 2019
Now the child process is killed when the parent dies (rootless-containers/rootlesskit#66)

rootless-containers/rootlesskit@e92d5e7...27a0c7a

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Upstream-commit: 00c92a671933c0e3f9b67940746d31144902929f
Component: engine
kiku-jw pushed a commit to kiku-jw/moby that referenced this pull request May 16, 2019
Now the child process is killed when the parent dies (rootless-containers/rootlesskit#66)

rootless-containers/rootlesskit@e92d5e7...27a0c7a

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
AkihiroSuda added a commit to AkihiroSuda/docker that referenced this pull request May 16, 2019
Now the child process is killed when the parent dies (rootless-containers/rootlesskit#66)

rootless-containers/rootlesskit@e92d5e7...27a0c7a

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 00c92a6)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request May 24, 2019
Now the child process is killed when the parent dies (rootless-containers/rootlesskit#66)

rootless-containers/rootlesskit@e92d5e7...27a0c7a

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 00c92a671933c0e3f9b67940746d31144902929f)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Upstream-commit: 8f61032ec4dba329a7206c0d17c184d276db575d
Component: engine
// https://github.com/rootless-containers/rootlesskit/issues/65#issuecomment-492343646
runtime.LockOSThread()
err = unix.Prctl(unix.PR_SET_PDEATHSIG, uintptr(unix.SIGKILL), 0, 0, 0)
runtime.UnlockOSThread()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect, for PDEATHSIG the parent is the thread, not the process. I'll leave a more detailed comment on the original issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you open an issue?

@AkihiroSuda AkihiroSuda mentioned this pull request Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants