Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1722072 > unrolled thread

Re: [PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region

Started byKees Cook <keescook@google.com>
First post2017-08-29 02:20 +0200
Last post2017-08-29 18:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to boot  error region Kees Cook <keescook@google.com> - 2017-08-29 02:20 +0200
    Re: [PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to  boot error region "Luck, Tony" <tony.luck@intel.com> - 2017-08-29 18:00 +0200

#1722072 — Re: [PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region

FromKees Cook <keescook@google.com>
Date2017-08-29 02:20 +0200
SubjectRe: [PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region
Message-ID<ujCq6-3Ti-5@gated-at.bofh.it>
On Wed, Aug 23, 2017 at 7:56 AM, Luck, Tony <tony.luck@intel.com> wrote:
>>> Should this not also have a capability check. Assuming file permissions
>>> are sufficient for grabbing a chunk of system memory holding error
>>> info doesn't seem too scary but it's at odds with a lot of other cases ?
>>
>> At least one of those other cases (pstore) added a capability check and now regret
>> it.  There's a thread on reverting it. Look for:
>>
>>   Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"
>
> Here's at least part of that thread:
>
> https://marc.info/?l=linux-kernel&m=150301241114262&w=2
>
> Kees: you were OK with removing the capability check from pstore, right?

Yeah, as long as there is comparable protections.

-Kees

-- 
Kees Cook
Pixel Security

[toc] | [next] | [standalone]


#1722581 — Re: [PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region

From"Luck, Tony" <tony.luck@intel.com>
Date2017-08-29 18:00 +0200
SubjectRe: [PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region
Message-ID<ujR5M-4uX-25@gated-at.bofh.it>
In reply to#1722072
On Mon, Aug 28, 2017 at 05:10:33PM -0700, Kees Cook wrote:
> On Wed, Aug 23, 2017 at 7:56 AM, Luck, Tony <tony.luck@intel.com> wrote:
> >>> Should this not also have a capability check. Assuming file permissions
> >>> are sufficient for grabbing a chunk of system memory holding error
> >>> info doesn't seem too scary but it's at odds with a lot of other cases ?
> >>
> >> At least one of those other cases (pstore) added a capability check and now regret
> >> it.  There's a thread on reverting it. Look for:
> >>
> >>   Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"
> >
> > Here's at least part of that thread:
> >
> > https://marc.info/?l=linux-kernel&m=150301241114262&w=2
> >
> > Kees: you were OK with removing the capability check from pstore, right?
> 
> Yeah, as long as there is comparable protections.

File system permission protection is "0400":

	# ls -al /sys/firmware/acpi/tables/data
	total 0
	drwxr-xr-x. 2 root root     0 Aug 28 14:13 .
	drwxr-xr-x. 4 root root     0 Aug 28 14:10 ..
	-r--------. 1 root root 32768 Aug 28 14:13 BERT

-Tony

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web