Lines Matching full:context
30 // its value. selinux_android_restorecon() also needs an sehandle for file context look up. It
39 // If sehandle is null, this returns success with an empty context.
45 char* context; in SelabelLookupFileContext() local
46 if (selabel_lookup(sehandle, &context, key.c_str(), type) != 0) { in SelabelLookupFileContext()
49 *result = context; in SelabelLookupFileContext()
50 free(context); in SelabelLookupFileContext()
55 // If sehandle is null, this returns success with an empty context.
69 char* context; in SelabelLookupFileContextBestMatch() local
70 if (selabel_lookup_best_match(sehandle, &context, key.c_str(), &c_aliases[0], type) != 0) { in SelabelLookupFileContextBestMatch()
73 *result = context; in SelabelLookupFileContextBestMatch()
74 free(context); in SelabelLookupFileContextBestMatch()