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
This commit is contained in:
Ashwini Oruganti 2019-09-18 14:25:26 -07:00
parent 30a3b92c0e
commit 1d02c2addc
1 changed files with 1 additions and 1 deletions

View File

@ -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("");
}