kernel: add some log

This commit is contained in:
weishu
2023-07-01 19:35:22 +08:00
parent 839b318785
commit d675662862

View File

@@ -26,7 +26,9 @@ static int transive_to_domain(const char *domain)
} }
error = security_secctx_to_secid(domain, strlen(domain), &sid); error = security_secctx_to_secid(domain, strlen(domain), &sid);
pr_info("error: %d, sid: %d\n", error, sid); if (error) {
pr_info("security_secctx_to_secid %s -> sid: %d, error: %d\n", domain, sid, error);
}
if (!error) { if (!error) {
if (!ksu_sid) if (!ksu_sid)
ksu_sid = sid; ksu_sid = sid;