Red Hat Bugzilla – Bug 62418
builtin kill -SIG -1 doesn't restrict to current UID
Last modified: 2007-04-18 12:41:29 EDT
Description of Problem:
The bash kill builtin appears not to restrict kill -1 to the current uid.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. start bash as a non-root user
2. bash-2.05a$ kill -HUP -1
bash: kill: (1) - Operation not permitted
All process excepting the calling process should receive a hup signal as happens
with other shells, /bin/kill, the kill system call, and the bash kill builtin in
previous versions of bash.
bash-2.05a-11 totally screws builtin kill
This should be fixed in -12.
OK, this appears to be working lots better with 2.05a-12 . . . wouldn't mind
someone else taking a look to make sure that it's acting correctly though.
It certainly appears fine to me. The code I have that depends upon bash's
builtin kill, particularly in the -1 case, works properly with -12 installed.