Home
last modified time | relevance | path

Searched refs:typeContext (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A Dhap_restorecon.cpp502 const char *typeContext = context_str(con); in HapDomainSetcontext() local
503 if (typeContext == nullptr) { in HapDomainSetcontext()
510 hapDomainInfo.packageName.c_str(), oldTypeContext, typeContext); in HapDomainSetcontext()
512 if (security_check_context(typeContext) < 0) { in HapDomainSetcontext()
513 …selinux_log(SELINUX_ERROR, "context: %s, %s\n", typeContext, GetErrStr(SELINUX_CHECK_CONTEXT_ERROR… in HapDomainSetcontext()
519 if (strcmp(typeContext, oldTypeContext)) { in HapDomainSetcontext()
520 if (setcon(typeContext) < 0) { in HapDomainSetcontext()