Bug 14247 - severe lack of "kill" on a system with util-linux > 2.12r
: severe lack of "kill" on a system with util-linux > 2.12r
Status: CLOSED FIXED
Product: Codex
Classification: Unclassified
Component: utils
: stable grimoire
: x86 Linux
: P2 critical
Assigned To: Grimoire Bug List
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-22 22:02 UTC by David Kowis
Modified: 2008-06-16 12:38 UTC (History)
1 user (show)

See Also:
eric: fixed_in_lesser_branch+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kowis 2008-01-22 22:02:11 UTC
This means on an upgrade, dispelling util linux 2.12r removes /bin/kill and it's
replacement 2.13.1 doesn't install it.

This is bad.
Comment 1 David Kowis 2008-01-22 22:06:05 UTC
http://userweb.kernel.org/~kzak/util-linux-ng/
That's the gaze url for util-linux

the real util-linux exists:
http://freshmeat.net/projects/util-linux/

Yeah, it's stale, but we should seperate the spells. And they should conflict.
And there should be a provider. Unless other things have been discussed about this.

The issue with /bin/kill vanishing still exists...
Comment 2 David Kowis 2008-01-22 22:12:49 UTC
coreutils-6.9 does not provide any kill either
Comment 3 Tommy Boatman 2008-01-22 22:37:01 UTC
bash-3.2# mv /bin/kill /bin/killold
bash-3.2# kill
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or 
kill -l [sigspec]
bash-3.2# killold
usage: killold [ -s signal | -p ] [ -a ] pid ...
       killold -l [ signal ]

kill is built into bash and ash, but not necessarily other shells.  Just a 
note, but doesn't really solve the issue.
Comment 4 Jaka Kranjc 2008-01-23 07:08:45 UTC
like it was mentioned on the ml, procps installs it, but we disabled it due to 
it being a conflict. Let's just fix that.

Then there's skill, pkill, killall ... unix likes badass toys :)
Comment 5 Ladislav Hagara (lace) 2008-01-23 09:41:24 UTC
(In reply to comment #1)
> http://userweb.kernel.org/~kzak/util-linux-ng/
> http://freshmeat.net/projects/util-linux/
> we should seperate the spells. And they should conflict.
> And there should be a provider.

I don't think so. util-linux is very old and there were also some security
problems. Also according to DistroWatch util-linux is in version 2.13.1 what in
reality is util-linux-ng. 

Of course I noticed this and mentioned it in my commit:
http://scmweb.sourcemage.org/gitweb.cgi?p=smgl/grimoire.git;a=commit;h=2f3c4faab05126323515eb880ad2d63cfcff1849

There were removed also /bin/arch, /usr/bin/write, ...
Of course I tested new utils-linux (several times rebooted my box).
Our init scripts contains only "kill" without path so builtin kill from
bash is used.
I am sorry I forgot about users who use shells which don't provide
builtin kill (which one?).

So we just have to fix procps.
Comment 6 Ladislav Hagara (lace) 2008-01-23 13:39:58 UTC
util-linux-ng still contains "deprecated" kill, we can just add --enable-kill to
configure

coreutils can also provide kill, is is just removed by our hostname.diff patch

procps, just remove one line from BUILD


Which one is the best?

Seems it is quite difficult to choose, for example I can read on Internet:

"Ubuntu ships /bin/kill from the procps package whilst other distributions (
such as redhat and opensuse ) use /bin/kill from coreutils."
Comment 7 Ladislav Hagara (lace) 2008-01-23 14:30:14 UTC
just trying new coreutils 6.10, no needs to patch it and we can use kill from it

there is another problem, new coreutils doesn't contain "su" :-)
there is a option --enable-install-program=su we can add to BUILD but it fails
on my box
which next package provides su?
Comment 8 Ladislav Hagara (lace) 2008-01-23 15:04:06 UTC
we should probably go upstream and remove su.patch from shadow
shadow provides su
Comment 9 Ladislav Hagara (lace) 2008-01-23 15:57:44 UTC
updated coreutils to 6.10, updated shadow
kill is provided by coreutils (upstream)
su is provided by shadow (upstream)

$ gaze from kill
coreutils-6.10:/bin/kill

$ gaze from su
shadow-4.0.18.1:/bin/su
shadow-4.0.18.1:/etc/pam.d/su
Comment 10 Jaka Kranjc 2008-02-04 04:37:18 UTC
ok, kill is all fixed, but what about the pam users's su problem?
Comment 11 Eric Sandall 2008-03-20 23:31:34 UTC
Marking the kill bug as fixed.

Jaka, what problem with su and PAM?

$ gaze version linux-pam
Grimoire  Section        Spell      Grimoire Version  Installed Version
--------  -------        -----      ----------------  -----------------
test      security-libs  linux-pam  0.99.10.0         0.99.10.0

sandalle@webex-d630:shadow$ su -
Password:
root@webex-d630:~# logout
sandalle@webex-d630:shadow$ su
Password:
root@webex-d630:/home/sandalle/scm/git/smgl/grimoire/security/shadow#