diff options
author | Stephen Wilson <[email protected]> | 2011-03-13 15:49:22 -0400 |
---|---|---|
committer | Al Viro <[email protected]> | 2011-03-23 16:36:58 -0400 |
commit | 18f661bcf898742212182d75f22f05b048cc04bb (patch) | |
tree | 3a0a6edc6e4240bda06fe52d565fe4b1cb4d8b84 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 26947f8c8f9598209001cdcd31bb2162a2e54691 (diff) |
proc: hold cred_guard_mutex in check_mem_permission()
Avoid a potential race when task exec's and we get a new ->mm but check against
the old credentials in ptrace_may_access().
Holding of the mutex is implemented by factoring out the body of the code into a
helper function __check_mem_permission(). Performing this factorization now
simplifies upcoming changes and minimizes churn in the diff's.
Signed-off-by: Stephen Wilson <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions