All of lore.kernel.org
 help / color / mirror / Atom feed
From: aq <aquynh@gmail.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: execve() in reboot.c ?
Date: Mon, 25 Jul 2005 17:53:15 +0900	[thread overview]
Message-ID: <9cde8bff05072501533bb9a2cc@mail.gmail.com> (raw)

Hello,

Domain kernel has arch/xen/kernel/reboot.c, which executes shutdown
and halt on request. But one problem is that we have the path and
command options fixed in the kernel, like this:


    static char *restart_argv[]  = { "/sbin/shutdown", "-r", "now", NULL };
    static char *poweroff_argv[] = { "/sbin/halt",     "-p",        NULL };


That is kind of violating the rule: kernel should never enforce the
policy to the user. We can see the problem if for example domU uses
busybox instead of sysvinit: busybox doesnt support "halt -p", so "xm
shutdown" cannot shutdown the domU.


Should we care enough to fix this problem?


regards,
aq

             reply	other threads:[~2005-07-25  8:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-25  8:53 aq [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-25 11:00 execve() in reboot.c ? Ian Pratt
2005-07-25 17:41 ` aq
2005-07-25 17:47   ` Mark Williamson
2005-07-25 17:56     ` Jeremy Katz
2005-07-25 18:03       ` Mark Williamson
2005-07-25 18:13         ` Rik van Riel
2005-07-25 18:20           ` Vincent Hanquez
2005-07-25 18:30             ` Anthony Liguori
2005-07-25 19:18             ` Rik van Riel
2005-07-25 18:26           ` Mark Williamson
2005-07-25 18:26         ` aq
2005-07-25 18:29           ` Mark Williamson
2005-07-25 18:31           ` Vincent Hanquez
2005-07-25 19:48 Ian Pratt
2005-07-25 20:18 ` Sean Dague
2005-07-25 20:31 ` Philip R Auld
2005-07-26 12:55   ` Gerd Knorr
2005-07-25 20:48 ` Mark Williamson
2005-07-25 20:46   ` Keir Fraser
2005-07-25 20:52   ` Rik van Riel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9cde8bff05072501533bb9a2cc@mail.gmail.com \
    --to=aquynh@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.