# \[PATCH 26/30\] Lock down ftrace

- From: David Howells \<dhowells@redhat.com\>
- Date: 2017-11-10 10:21:49 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2017/11/5130265
- Thread: https://ratatoskr.run/linux-security-module/2017/11/5129734/t.md

```text
Jiri Kosina [ref] wrote:

> > The idea is to prevent cryptographic data for filesystems and other things
> > from being read out of the kernel memory as well as to prevent unauthorised
> > modification of kernel memory.
> 
> Then it would make sense to actually lock down dumping of registers / 
> function arguments (kprobes can currently do that, ftrace eventually could 
> as well I guess), but disabling the whole ftrace altogether seems like a 
> totally unnecessary overkill.

That would be fine by me.  I have a patch that locks down kprobes in this
series.  Steven says that ftrace might acquire the ability to dump registers
in the future.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
