[Bug 1690820] [NEW] killing su does not kill subprocess (SIGTERM not propagated)
Radu Duta
1690820 at bugs.launchpad.net
Mon May 15 14:05:21 UTC 2017
Public bug reported:
Example where the subprocess 115576 has not been terminated:
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# pkill sleep; ./su test -c 'sleep 9999'&
[1] 115575
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# kill $!
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# ...waiting for child to terminate.
pgrep sleep
115576
[1]+ Exit 255 ./su test -c 'sleep 9999'
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# pgrep sleep
115576
Expected behavior:
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# pkill sleep; ./su test -c 'sleep 9999' &
[1] 115503
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# kill $!
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src#
Session terminated, terminating shell... ...terminated.
...terminated.
[1]+ Exit 143 ./su test -c 'sleep 9999'
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# pgrep sleep
** Affects: shadow (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1690820
Title:
killing su does not kill subprocess (SIGTERM not propagated)
Status in shadow package in Ubuntu:
New
Bug description:
Example where the subprocess 115576 has not been terminated:
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# pkill sleep; ./su test -c 'sleep 9999'&
[1] 115575
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# kill $!
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# ...waiting for child to terminate.
pgrep sleep
115576
[1]+ Exit 255 ./su test -c 'sleep 9999'
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# pgrep sleep
115576
Expected behavior:
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# pkill sleep; ./su test -c 'sleep 9999' &
[1] 115503
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# kill $!
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src#
Session terminated, terminating shell... ...terminated.
...terminated.
[1]+ Exit 143 ./su test -c 'sleep 9999'
root at ubuntu:~/sudebug/src/shadow-4.1.5.1/src# pgrep sleep
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1690820/+subscriptions
More information about the foundations-bugs
mailing list