All of lore.kernel.org
 help / color / mirror / Atom feed
* The one and only "permission denied" in find /sys
@ 2021-10-13 20:12 Rob Landley
  2021-10-14  1:48 ` Kees Cook
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Landley @ 2021-10-13 20:12 UTC (permalink / raw)
  To: linux-kernel, Kees Cook, Linux FS Devel

There is exactly one directory in the whole of sysfs that a normal user can't
read (at least on my stock devuan laptop):

  $ find /sys -name potato
  find: ‘/sys/fs/pstore’: Permission denied

It's the "pstore" filesystem, it was explicitly broken by commit d7caa33687ce,
and the commit seems to say this was to fix an issue that didn't exist yet but
might someday.

Did whatever issue it was concerned about ever actually start happening? Why did
you not change the permissions on the files _in_ the directory so they weren't
world readable instead? Should /dev/shm stop being world ls-able as well?

Confused,

Rob

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-15 21:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 20:12 The one and only "permission denied" in find /sys Rob Landley
2021-10-14  1:48 ` Kees Cook
2021-10-15  9:14   ` Christian Brauner
2021-10-15 21:40     ` Kees Cook

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.