WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] execve() in reboot.c ?

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] execve() in reboot.c ?
From: aq <aquynh@xxxxxxxxx>
Date: 2005年7月25日 17:53:15 +0900
Delivery-date: 2005年7月25日 08:51:48 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=gpBJm92vAnHqk6DYWb55xafbmNOvPHBj5QKB9zb3nOkSHKDEZ9b52P0eqlBiYJRswyHBrLMoxWTsjmBaQdUlLErMUCRKlZDAnjTd8ixVcMCYMEr021TkyD/carMNdEcB5+f7AnK4B3AZs7GOmVevH0b3UP9XbTV1lg22m4XnnIY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: aq <aquynh@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-devel] AOE (Ata over ethernet) troubles on xen 2.0.6 , James Harper
Next by Date: [Xen-devel] Xen technical summit ? , aq
Previous by Thread: [Xen-devel] Grant-Table Enabled netif? , Michael Vrable
Next by Thread: RE: [Xen-devel] execve() in reboot.c ? , Ian Pratt
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /