From mboxrd@z Thu Jan 1 00:00:00 1970 From: aq Subject: execve() in reboot.c ? Date: Mon, 25 Jul 2005 17:53:15 +0900 Message-ID: <9cde8bff05072501533bb9a2cc@mail.gmail.com> Reply-To: aq Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org 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[] =3D { "/sbin/shutdown", "-r", "now", NULL = }; static char *poweroff_argv[] =3D { "/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