mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: fix logic error and incorrect reference from previous commit
Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -350,7 +350,7 @@ int unix_rule::gen_policy_re(Profile &prof)
|
||||
|
||||
/* peer addr */
|
||||
if (peer_path) {
|
||||
if (strcmp(path, "none") == 0) {
|
||||
if (strcmp(peer_path, "none") == 0) {
|
||||
buffer << "\\x01";
|
||||
} else {
|
||||
/* skip leading @ */
|
||||
|
Reference in New Issue
Block a user