Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d00b40a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "apparmor: don't try to replace stale label in ptraceme check"

parents 7eca9e35 4834eabf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -130,11 +130,11 @@ static int apparmor_ptrace_traceme(struct task_struct *parent)
	struct aa_label *tracer, *tracee;
	int error;

	tracee = begin_current_label_crit_section();
	tracee = __begin_current_label_crit_section();
	tracer = aa_get_task_label(parent);
	error = aa_may_ptrace(tracer, tracee, AA_PTRACE_TRACE);
	aa_put_label(tracer);
	end_current_label_crit_section(tracee);
	__end_current_label_crit_section(tracee);

	return error;
}