Home
last modified time | relevance | path

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

/system/core/fs_mgr/
Dfs_mgr_vendor_overlay.cpp82 const auto source_context = fs_mgr_get_context(source_directory); in fs_mgr_vendor_overlay_mount() local
83 if (target_context != source_context) { in fs_mgr_vendor_overlay_mount()
84 LERROR << " failed: source and target contexts do not match (source:" << source_context in fs_mgr_vendor_overlay_mount()
/system/core/init/
Dproperty_service.cpp135 bool CanReadProperty(const std::string& source_context, const std::string& name) { in CanReadProperty() argument
146 return selinux_check_access(source_context.c_str(), target_context, "file", "read", in CanReadProperty()
151 const char* source_context, const ucred& cr) { in CheckMacPerms() argument
152 if (!target_context || !source_context) { in CheckMacPerms()
161 bool has_access = (selinux_check_access(source_context, target_context, "property_service", in CheckMacPerms()
294 bool GetSourceContext(std::string* source_context) const { in GetSourceContext()
299 *source_context = c_source_context; in GetSourceContext()
407 const std::string& source_context, const ucred& cr) { in CheckControlPropertyPerms() argument
421 … if (CheckMacPerms(control_string_legacy, target_context_legacy, source_context.c_str(), cr)) { in CheckControlPropertyPerms()
432 return CheckMacPerms(control_string_full, target_context_full, source_context.c_str(), cr); in CheckControlPropertyPerms()
[all …]
Dproperty_service.h30 bool CanReadProperty(const std::string& source_context, const std::string& name);