|
@@ -114,13 +114,13 @@ static int apparmor_ptrace_access_check(struct task_struct *child,
|
|
struct aa_label *tracer, *tracee;
|
|
struct aa_label *tracer, *tracee;
|
|
int error;
|
|
int error;
|
|
|
|
|
|
- tracer = begin_current_label_crit_section();
|
|
|
|
|
|
+ tracer = __begin_current_label_crit_section();
|
|
tracee = aa_get_task_label(child);
|
|
tracee = aa_get_task_label(child);
|
|
error = aa_may_ptrace(tracer, tracee,
|
|
error = aa_may_ptrace(tracer, tracee,
|
|
(mode & PTRACE_MODE_READ) ? AA_PTRACE_READ
|
|
(mode & PTRACE_MODE_READ) ? AA_PTRACE_READ
|
|
: AA_PTRACE_TRACE);
|
|
: AA_PTRACE_TRACE);
|
|
aa_put_label(tracee);
|
|
aa_put_label(tracee);
|
|
- end_current_label_crit_section(tracer);
|
|
|
|
|
|
+ __end_current_label_crit_section(tracer);
|
|
|
|
|
|
return error;
|
|
return error;
|
|
}
|
|
}
|