[Devel] RFC: /proc/cmdline writeable by root

Konstantin Khlebnikov koct9i at gmail.com
Tue Dec 30 10:25:39 PST 2014


On Dec 30, 2014 7:36 PM, "Sergey Korshunoff" <seyko2 at gmail.com> wrote:
>
> First time I patched an openvz kernel and vzctl for configuring a
> /proc/cmdline in CT. This was needed to properly run a my version of
> the gentoo without a change. Second time: I trying to make a universal
> livecd with android-x86. And to do this /proc/cmdline in CT0 must be
> writeable by a root user. Programs in the initrd can load a different
> video drivers, some drivers support a hardware acceleration, some
> don't. In the last case /proc/cmdline must contain HWACCEL=0. If the
> livecd is running by VirtualBox, then android.hardware=vm must be
> present in the /proc/cmdline. If /proc/cmdline will be writeable then
> a programs in the initrd can present a configuration menu to the user
> and a need to use a syslinux boot loader for this will go away.
>
> Any comments?

You could bind mount this file in some startup hook.

>
> PS: a patch for the second case is attached
>
> _______________________________________________
> Devel mailing list
> Devel at openvz.org
> https://lists.openvz.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/devel/attachments/20141230/5d1b9f91/attachment-0001.html>


More information about the Devel mailing list