Messages in this thread | | | Date | Thu, 9 Nov 2017 13:11:11 -0500 | From | Steven Rostedt <> | Subject | Re: [kernel-hardening] [PATCH v4] scripts: add leaking_addresses.pl |
| |
On Thu, 9 Nov 2017 10:24:32 +0530 Kaiwan N Billimoria <kaiwan.billimoria@gmail.com> wrote:
> On Thu, Nov 9, 2017 at 10:13 AM, Kaiwan N Billimoria > <kaiwan.billimoria@gmail.com> wrote: > >> But I don't know if there is anything else than the profiling code > >> that _really_ wants access to /proc/kallsyms in user space as a > >> regular user. > > > > Front-ends to ftrace, like trace-cmd? > [from the trace-cmd git repo (Steve Rostedt, pl stand up, pl stand up :-) > Documentation/trace-cmd-restore.1.txt :
Yes, profiling and tracing are similar. And you need to be root to run the recording anyway. Thus, as long as root user can read kallsyms, trace-cmd should be fine. As trace-cmd requires root access to do any ftrace tracing.
-- Steve
| |