aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorKhadija Kamran <[email protected]>2023-08-07 06:59:29 +0000
committerPaul Moore <[email protected]>2023-08-08 20:48:47 +0000
commit6672efbb685f7c9c9df005beb839e1942fd6b34e (patch)
treee29f61323cc3b5923c4013248381cb6382c2ca0e /tools/perf/scripts/python/check-perf-trace.py
parentlsm: add comment block for security_sk_classify_flow LSM hook (diff)
downloadkernel-6672efbb685f7c9c9df005beb839e1942fd6b34e.tar.gz
kernel-6672efbb685f7c9c9df005beb839e1942fd6b34e.zip
lsm: constify the 'target' parameter in security_capget()
Three LSMs register the implementations for the "capget" hook: AppArmor, SELinux, and the normal capability code. Looking at the function implementations we may observe that the first parameter "target" is not changing. Mark the first argument "target" of LSM hook security_capget() as "const" since it will not be changing in the LSM hook. cap_capget() LSM hook declaration exceeds the 80 characters per line limit. Split the function declaration to multiple lines to decrease the line length. Signed-off-by: Khadija Kamran <[email protected]> Acked-by: John Johansen <[email protected]> [PM: align the cap_capget() declaration, spelling fixes] Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions