From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Jeff Johnson <jjohnson@codeaurora.org>
Cc: linux-wireless@vger.kernel.org, Kalle Valo <kvalo@codeaurora.org>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Kees Cook <keescook@chromium.org>, Jason Gunthorpe <jgg@ziepe.ca>,
Chao Yu <chao@kernel.org>, Leon Romanovsky <leon@kernel.org>
Subject: Re: [PATCH v2] b43: don't save dentries for debugfs
Date: Fri, 21 May 2021 07:12:07 +0200 [thread overview]
Message-ID: <YKdBJxWSXPM161hg@kroah.com> (raw)
In-Reply-To: <36d75173b785819a4792ccceb5bf26b8@codeaurora.org>
On Thu, May 20, 2021 at 03:16:35PM -0700, Jeff Johnson wrote:
> On 2021-05-19 09:03, Greg Kroah-Hartman wrote:
> > On Wed, May 19, 2021 at 08:57:00AM -0700, Jeff Johnson wrote:
> > > Unless debugfs is disabled, like on Android, which is the real
> > > problem I'm
> > > trying to solve.
> >
> > Then use some other filesystem to place your relay file in. A relay
> > file is not a file that userspace should rely on for normal operation,
> > so why do you need it at all?
> >
> > What tools/operation requires access to this file that systems without
> > debugfs support is causing problems on?
>
> (trimmed some lists)
>
> For the ath drivers (as well as the out-of-tree Android driver) it is being
> used for RF spectral scan which produces a large amount of data that is
> processed by a userspace analysis application.
And that application requires root access in order to be able to read
from the debugfs file today? That feels risky. And doesn't work for
Android systems today, right?
So what's wrong with just leaving it as-is, debugfs isn't going away on
debug Android kernels, which is when you need to run this type of thing,
only on the "user builds".
And if it's really an issue, take that up with Google, it's their
security policy that is driving this, not the community's requirements :)
And note, moving files out of debugfs to elsewhere in the system
circumvents the reasons that Google is not allowing debugfs anymore,
which defeats the purpose entirely of that decision. Are you _sure_
that's a good idea for your users?
> I've been looking for an alternate filesystem to use, but am not finding
> anything where it appears easy to get a parent dentry, so any clues for the
> clueless (me) would be appreciated.
I'm not going to tell you how to abuse other filesystems in the kernel,
but it shouldn't be all that hard if you really want to do it...
good luck!
greg k-h
prev parent reply other threads:[~2021-05-21 5:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-18 16:33 [PATCH v2] b43: don't save dentries for debugfs Greg Kroah-Hartman
2021-05-18 16:33 ` Greg Kroah-Hartman
2021-05-18 17:47 ` Kalle Valo
2021-05-18 17:47 ` Kalle Valo
2021-05-21 18:44 ` Greg Kroah-Hartman
2021-05-21 18:44 ` Greg Kroah-Hartman
2021-05-18 19:29 ` Jeff Johnson
2021-05-18 19:29 ` Jeff Johnson
2021-05-18 22:00 ` Jeff Johnson
2021-05-18 22:00 ` Jeff Johnson
2021-05-19 5:05 ` Greg Kroah-Hartman
2021-05-19 5:05 ` Greg Kroah-Hartman
2021-05-19 15:04 ` Jeff Johnson
2021-05-19 15:04 ` Jeff Johnson
2021-05-19 15:42 ` Greg Kroah-Hartman
2021-05-19 15:42 ` Greg Kroah-Hartman
2021-05-19 15:57 ` Jeff Johnson
2021-05-19 15:57 ` Jeff Johnson
2021-05-19 16:03 ` Greg Kroah-Hartman
2021-05-19 16:03 ` Greg Kroah-Hartman
2021-05-20 22:16 ` Jeff Johnson
2021-05-21 5:12 ` Greg Kroah-Hartman [this message]
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=YKdBJxWSXPM161hg@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=chao@kernel.org \
--cc=davem@davemloft.net \
--cc=jgg@ziepe.ca \
--cc=jjohnson@codeaurora.org \
--cc=keescook@chromium.org \
--cc=kuba@kernel.org \
--cc=kvalo@codeaurora.org \
--cc=leon@kernel.org \
--cc=linux-wireless@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.