Lines Matching full:backend
198 "If -p is specified, the property backend is used.\n"
199 "If -s is specified, the service backend is used to verify binder services.\n"
200 "If -l is specified, the service backend is used to verify hwbinder services.\n"
201 "If -v is specified, the service backend is used to verify vndbinder services.\n"
240 static void do_compare_and_die_on_error(struct selinux_opt opts[], unsigned int backend, char *paths[])
250 global_state.sepolicy.sehnd[i] = selabel_open(backend, opts, 2);
261 static void do_fc_check_and_die_on_error(struct selinux_opt opts[], unsigned int backend, filemode mode,
275 /* else: We could throw the error here, but libselinux backend will catch it */
323 global_state.sepolicy.sehnd[0] = selabel_open(backend, opts, 2);
337 // Default backend unless changed by input argument.
338 unsigned int backend = SELABEL_CTX_FILE;
356 backend = SELABEL_CTX_ANDROID_PROP;
360 backend = SELABEL_CTX_ANDROID_SERVICE;
364 backend = SELABEL_CTX_ANDROID_SERVICE;
368 backend = SELABEL_CTX_ANDROID_SERVICE;
382 if (compare && backend != SELABEL_CTX_FILE) {
389 do_compare_and_die_on_error(opts, backend, &(argv[index]));
395 do_fc_check_and_die_on_error(opts, backend, mode, sepolicy_file, context_file, allow_empty);