Re: [PATCH 24/24] debugfs: Restrict debugfs when the kernel is locked down

From: David Howells
Date: Wed Apr 11 2018 - 16:09:25 EST


Greg KH <greg@xxxxxxxxx> wrote:

> Why not just disable debugfs entirely? This half-hearted way to sorta
> lock it down is odd, it is meant to not be there at all, nothing in your
> normal system should ever depend on it.
>
> So again just don't allow it to be mounted at all, much simpler and more
> obvious as to what is going on.

Yeah, I agree - and then I got complaints because it seems that it's been
abused to allow drivers and userspace components to communicate.

David