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

Commit 1d02c2ad authored by Ashwini Oruganti's avatar Ashwini Oruganti
Browse files

Update auditParse to not prepend "b/" to bug IDs

Instead, the bug_map entries will now include the b/ prefix. This will
allow arbitrary URLs to be added as well to SELinux denial messages

Bug: 141014771
Test: Generated a denial, verified that the bug id in the dmesg logs
remains unchanged.

Change-Id: I4679117abdc2e13af81336b0b7fd8d69def80147
parent 30a3b92c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ void LogAudit::auditParse(const std::string& string, uid_t uid,
    }
    auto search = denial_to_bug.find(scontext + tcontext + tclass);
    if (search != denial_to_bug.end()) {
        bug_num->assign(" b/" + search->second);
        bug_num->assign(" " + search->second);
    } else {
        bug_num->assign("");
    }