[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#551753: kills processes from thin client sessions which it shouldnt kill



[Holger Levsen]
> the purpose of killer is to kill processes belonging to a user who
> is not logged in anymore of whose processes are hanging. According
> to Skolelinux bug #1373 it also kills processes which it shouldnt
> kill.

I believe I was able to reproduce it, where killer would fail to
handle the output from ps properly for users with usernames longer
than 8 characters.  I've commited a patch to svn and will upload
shortly.

Here is the old behaviour, where killer want to kill the processes of
the user testesttest currently logged in via ssh from remote:

  tjener:~# killer -n
  kill(15, 23835) user=1000 command=bash nice=0
  kill(9, 23835) user=1000 command=bash nice=0
  kill(23, 23835) user=1000 command=bash nice=0
  kill(9, 23835) user=1000 command=bash nice=0
  tjener:~# who
  root     :0           2010-01-22 07:16
  root     pts/2        2010-01-25 17:37 (remote)
  testtesttest pts/3        2010-01-25 18:59 (remote)
  tjener:~# id testtesttest
  uid=1000(testtesttest) gid=1000(testtesttest) grupper=1000(testtesttest)
  tjener:~#

And this is the new behaviour after applying the patch:

  tjener:~# killer -n
  tjener:~# 

Happy hacking,
-- 
Petter Reinholdtsen



Reply to: