diff options
| author | Serge E. Hallyn <[email protected]> | 2011-03-23 16:43:20 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-03-23 19:47:05 -0700 |
| commit | 8409cca7056113bee3236cb6a8e4d8d4d1eef102 (patch) | |
| tree | d9f1ced0d47070fcdf8b399021f33770c150b1ec /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | 39fd33933b0209e4b6254743f2cede07c5ad4c52 (diff) | |
userns: allow ptrace from non-init user namespaces
ptrace is allowed to tasks in the same user namespace according to the
usual rules (i.e. the same rules as for two tasks in the init user
namespace). ptrace is also allowed to a user namespace to which the
current task the has CAP_SYS_PTRACE capability.
Changelog:
Dec 31: Address feedback by Eric:
. Correct ptrace uid check
. Rename may_ptrace_ns to ptrace_capable
. Also fix the cap_ptrace checks.
Jan 1: Use const cred struct
Jan 11: use task_ns_capable() in place of ptrace_capable().
Feb 23: same_or_ancestore_user_ns() was not an appropriate
check to constrain cap_issubset. Rather, cap_issubset()
only is meaningful when both capsets are in the same
user_ns.
Signed-off-by: Serge E. Hallyn <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
Acked-by: David Howells <[email protected]>
Cc: James Morris <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions