linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: lenb@kernel.org, rui.zhang@intel.com, linux-acpi@vger.kernel.org
Subject: Re: [PATCH 3/3] acpi: Split out custom_method functionality into an own driver
Date: Tue, 29 Mar 2011 23:11:09 +0200	[thread overview]
Message-ID: <201103292311.10991.trenn@suse.de> (raw)
In-Reply-To: <201103292136.50214.rjw@sisk.pl>

On Tuesday 29 March 2011 21:36:50 Rafael J. Wysocki wrote:
> On Tuesday, March 29, 2011, Thomas Renninger wrote:
> > With /sys/kernel/debug/acpi/custom_method root can write
> > to arbitrary memory and increase his priveleges, even if
> > these are restricted.
> > 
> > -> Make this an own debug .config option and warn about the
> > security issue in the config description.
> > 
> > -> Still keep acpi/debugfs.c which now only creates and empty
> >    /sys/kernel/debug/acpi directory. There might be other
> >    users of it later.
> > 
> > Signed-off-by: Thomas Renninger <trenn@suse.de>
> > CC: Rafael J. Wysocki <rjw@sisk.pl>
> > CC: lenb@kernel.org
> > CC: rui.zhang@intel.com
> > CC: linux-acpi@vger.kernel.org
> 
> OK, but you don't need to move custom_method to a separate file.  Why
> are you doing that, exactly?
Because there may come other acpi debugfs stuff added there and then
it either needs ugly #ifdef logics inside the file or the split will be done then.
Separating the code belonging to this option into an own
file looks like the cleanest way to me.
 
> > +config ACPI_CUSTOM_METHOD
> > +	tristate "ACPI function runtime override debug utility (SECURITY ALERT)"
> 
> I wouldn't put the "SECURITY ALERT" in the option string.  I'd call it
> "Allow ACPI methods to be inserted/replaced at run time"
I agree.
> 
> > +	depends on DEBUG_FS
> > +	default n
> > +	help
> > +	  This is an ACPI debug facility:
> 
> Here, I'd say:
> "This debug facility allows ACPI AML methods to me inserted and/or replaced
> without rebooting the system.  For details refer to "
Yep, I'll fix the wording of this one and the rest and will resubmit tomorrow.

Thanks,

    Thomas

  reply	other threads:[~2011-03-29 21:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1301401990-35469-1-git-send-email-trenn@suse.de>
2011-03-29 12:33 ` [PATCH 1/3] acpi ec: Cleanup unused stuff Thomas Renninger
2011-03-29 12:33 ` [PATCH 2/3] acpi: Cleanup custom_method debug stuff Thomas Renninger
2011-03-29 19:27   ` Rafael J. Wysocki
2011-03-30  1:37   ` Zhang Rui
2011-03-30  9:06     ` Thomas Renninger
2011-03-31  1:14       ` Zhang Rui
2011-03-29 12:33 ` [PATCH 3/3] acpi: Split out custom_method functionality into an own driver Thomas Renninger
2011-03-29 19:36   ` Rafael J. Wysocki
2011-03-29 21:11     ` Thomas Renninger [this message]
2011-03-29 21:29       ` Rafael J. Wysocki
2011-03-30  2:03   ` Zhang Rui
2011-03-30  8:53     ` Matthew Garrett
2011-03-31 11:36 [PATCH 1/3] acpi ec: Cleanup unused stuff Thomas Renninger
2011-03-31 11:36 ` [PATCH 3/3] acpi: Split out custom_method functionality into an own driver Thomas Renninger
2011-03-31 21:41   ` Rafael J. Wysocki
2011-04-01  7:47     ` Thomas Renninger
2011-04-01  7:50     ` [PATCH 3/3] ACPI: " Thomas Renninger
2011-04-01 23:50       ` Rafael J. Wysocki

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=201103292311.10991.trenn@suse.de \
    --to=trenn@suse.de \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=rui.zhang@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).