diff options
| author | John Johansen <john.johansen@canonical.com> | 2025-04-01 15:28:13 -0700 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2025-07-15 22:39:43 -0700 |
| commit | bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a (patch) | |
| tree | b2b4148be773a973325f3785d2c956a59f12564a /security/apparmor/net.c | |
| parent | apparmor: update kernel doc comments for xxx_label_crit_section (diff) | |
| download | linux-bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a.tar.gz linux-bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a.zip | |
apparmor: Remove use of the double lock
The use of the double lock is not necessary and problematic. Instead
pull the bits that need locks into their own sections and grab the
needed references.
Fixes: c05e705812d1 ("apparmor: add fine grained af_unix mediation")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/net.c')
| -rw-r--r-- | security/apparmor/net.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/security/apparmor/net.c b/security/apparmor/net.c index a256a4664826..e6f9e11eaa6a 100644 --- a/security/apparmor/net.c +++ b/security/apparmor/net.c @@ -148,9 +148,6 @@ void audit_net_cb(struct audit_buffer *ab, void *va) audit_unix_addr(ab, "peer_addr", unix_addr(ad->net.addr), ad->net.addrlen); - else - audit_unix_sk_addr(ab, "peer_addr", - ad->net.peer_sk); } } if (ad->peer) { |
