aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2016-05-29 00:15:13 +0900
committerArnaldo Carvalho de Melo <[email protected]>2016-05-30 13:15:01 -0300
commit11870d714a1b744a0225e90b0b395346357defe9 (patch)
treeb0cabbde5a55ad879ec9505710bef357a385239c /tools/perf/scripts/python/export-to-postgresql.py
parentdcd1e2a7ba63710843d559f1570628321e62223e (diff)
perf symbols: Introduce filename__readable to check readability
Introduce filename__readable to check readability by opening the file directly. Since the access(R_OK) just checks the readability based on real UID/GID, it is ignored that the effective UID/GID and capabilities for some special file (e.g. /proc/kcore). filename__readable() directly opens given file with O_RDONLY so that the kernel checks it by effective UID/GID and capabilities. Signed-off-by: Masami Hiramatsu <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Ananth N Mavinakayanahalli <[email protected]> Cc: Brendan Gregg <[email protected]> Cc: Hemant Kumar <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/20160528151513.16098.97576.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions