Commit 6cc6a052 authored by John Johansen's avatar John Johansen
Browse files

apparmor: lift kernel socket check out of critical section



There is no need for the kern check to be in the critical section,
it only complicates the code and slows down the case where the
socket is being created by the kernel.

Lifting it out will also allow socket_create to share common template
code, with other socket_permission checks.

Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 9045aa25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment