All of lore.kernel.org
 help / color / mirror / Atom feed
From: WANG Cong <xiyou.wangcong@gmail.com>
To: kexec@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kexec: include sysctl to disable
Date: Thu, 20 Jan 2011 05:32:50 +0000 (UTC)	[thread overview]
Message-ID: <ih8he2$41t$2@dough.gmane.org> (raw)
In-Reply-To: ih8gpe$41t$1@dough.gmane.org

On Thu, 20 Jan 2011 05:21:50 +0000, WANG Cong wrote:

> On Wed, 19 Jan 2011 17:26:30 -0500, Eric Paris wrote:
> 
>> much like /proc/sys/kernel/modules_disable is used to disable module
>> loading, /proc/sys/kernel/kexec_disable is used to disable kexec code
>> loading.  It would still be possible to use kexec -l to load a kernel,
>> set the tunable to 1 so the kernel waiting to boot couldn't change, and
>> then launch the kernel at a later time (through kexec -e or through a
>> crash)
>> 
>> 
> But root can still change it to 0 and do kexec like normal, right?

Er... never mind, it is a one-way road...

Looks like a good balance between reusing CAP_SYS_MODULE and introducing
a new CAP_SYS_XXX.

Acked-by: WANG Cong <xiyou.wangcong@gmail.com>

Thanks.


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

WARNING: multiple messages have this Message-ID (diff)
From: WANG Cong <xiyou.wangcong@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: kexec@lists.infradead.org
Subject: Re: [PATCH] kexec: include sysctl to disable
Date: Thu, 20 Jan 2011 05:32:50 +0000 (UTC)	[thread overview]
Message-ID: <ih8he2$41t$2@dough.gmane.org> (raw)
In-Reply-To: ih8gpe$41t$1@dough.gmane.org

On Thu, 20 Jan 2011 05:21:50 +0000, WANG Cong wrote:

> On Wed, 19 Jan 2011 17:26:30 -0500, Eric Paris wrote:
> 
>> much like /proc/sys/kernel/modules_disable is used to disable module
>> loading, /proc/sys/kernel/kexec_disable is used to disable kexec code
>> loading.  It would still be possible to use kexec -l to load a kernel,
>> set the tunable to 1 so the kernel waiting to boot couldn't change, and
>> then launch the kernel at a later time (through kexec -e or through a
>> crash)
>> 
>> 
> But root can still change it to 0 and do kexec like normal, right?

Er... never mind, it is a one-way road...

Looks like a good balance between reusing CAP_SYS_MODULE and introducing
a new CAP_SYS_XXX.

Acked-by: WANG Cong <xiyou.wangcong@gmail.com>

Thanks.


  reply	other threads:[~2011-01-20  5:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19 22:26 [PATCH] kexec: include sysctl to disable Eric Paris
2011-01-19 22:26 ` Eric Paris
2011-01-20  5:21 ` WANG Cong
2011-01-20  5:21   ` WANG Cong
2011-01-20  5:32   ` WANG Cong [this message]
2011-01-20  5:32     ` WANG Cong
2011-01-27 18:40     ` Eric Paris
2011-01-27 18:40       ` Eric Paris
2011-01-27 18:50       ` Vivek Goyal
2011-01-27 18:50         ` Vivek Goyal
2011-01-27 18:56       ` Neil Horman
2011-01-27 18:56         ` Neil Horman

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='ih8he2$41t$2@dough.gmane.org' \
    --to=xiyou.wangcong@gmail.com \
    --cc=kexec@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /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.