Home
last modified time | relevance | path

Searched refs:selabel_handle (Results 1 – 25 of 30) sorted by relevance

12

/external/selinux/libselinux/src/
Dlabel_internal.h27 int selabel_file_init(struct selabel_handle *rec,
30 int selabel_media_init(struct selabel_handle *rec,
33 int selabel_x_init(struct selabel_handle *rec,
36 int selabel_db_init(struct selabel_handle *rec,
39 int selabel_property_init(struct selabel_handle *rec,
42 int selabel_service_init(struct selabel_handle *rec,
88 struct selabel_handle { struct
94 struct selabel_lookup_rec *(*func_lookup) (struct selabel_handle *h, argument
96 void (*func_close) (struct selabel_handle *h); argument
97 void (*func_stats) (struct selabel_handle *h); argument
[all …]
Dlabel.c44 typedef int (*selabel_initfunc)(struct selabel_handle *rec,
229 int selabel_validate(struct selabel_handle *rec, in selabel_validate()
247 static char *selabel_sub_key(struct selabel_handle *rec, const char *key) in selabel_sub_key()
268 static int selabel_fini(struct selabel_handle *rec, in selabel_fini()
287 selabel_lookup_common(struct selabel_handle *rec, int translating, in selabel_lookup_common()
315 selabel_lookup_bm_common(struct selabel_handle *rec, int translating, in selabel_lookup_bm_common()
346 struct selabel_handle *selabel_open(unsigned int backend, in selabel_open()
350 struct selabel_handle *rec = NULL; in selabel_open()
362 rec = (struct selabel_handle *)malloc(sizeof(*rec)); in selabel_open()
382 int selabel_lookup(struct selabel_handle *rec, char **con, in selabel_lookup()
[all …]
Dlabel_backends_android.c83 static int process_line(struct selabel_handle *rec, in process_line()
140 static int process_file(struct selabel_handle *rec, const char *path) in process_file()
206 static void closef(struct selabel_handle *rec);
208 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
273 static void closef(struct selabel_handle *rec) in closef()
293 static struct selabel_lookup_rec *property_lookup(struct selabel_handle *rec, in property_lookup()
328 static struct selabel_lookup_rec *service_lookup(struct selabel_handle *rec, in service_lookup()
360 static void stats(struct selabel_handle __attribute__((unused)) *rec) in stats()
365 int selabel_property_init(struct selabel_handle *rec, in selabel_property_init()
383 int selabel_service_init(struct selabel_handle *rec, in selabel_service_init()
Dlabel_media.c34 unsigned lineno, struct selabel_handle *rec) in process_line()
70 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
153 static void close(struct selabel_handle *rec) in close()
172 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec, in lookup()
197 static void stats(struct selabel_handle *rec) in stats()
209 int selabel_media_init(struct selabel_handle *rec, in selabel_media_init()
Dlabel_x.c36 unsigned lineno, struct selabel_handle *rec) in process_line()
97 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
180 static void close(struct selabel_handle *rec) in close()
199 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec, in lookup()
223 static void stats(struct selabel_handle *rec) in stats()
235 int selabel_x_init(struct selabel_handle *rec, const struct selinux_opt *opts, in selabel_x_init()
Dlabel_file.c99 struct selabel_handle *rec, const char *path) in process_text_file()
117 static int load_mmap(FILE *fp, size_t len, struct selabel_handle *rec, in load_mmap()
527 struct selabel_handle *rec, in process_file()
562 static void closef(struct selabel_handle *rec);
564 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
687 static void closef(struct selabel_handle *rec) in closef()
734 static struct spec *lookup_common(struct selabel_handle *rec, in lookup_common()
821 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec, in lookup()
832 static bool partial_match(struct selabel_handle *rec, const char *key) in partial_match()
837 static struct selabel_lookup_rec *lookup_best_match(struct selabel_handle *rec, in lookup_best_match()
[all …]
Dlabel_db.c175 db_close(struct selabel_handle *rec) in db_close()
194 db_lookup(struct selabel_handle *rec, const char *key, int type) in db_lookup()
221 db_stats(struct selabel_handle *rec) in db_stats()
238 struct selabel_handle *rec) in db_init()
350 int selabel_db_init(struct selabel_handle *rec, in selabel_db_init()
Dselinux_restorecon.c46 static struct selabel_handle *fc_sehandle = NULL;
92 struct selabel_handle *sehandle = NULL; in restorecon_init()
1039 void selinux_restorecon_set_sehandle(struct selabel_handle *hndl) in selinux_restorecon_set_sehandle()
1044 fc_sehandle = (struct selabel_handle *) hndl; in selinux_restorecon_set_sehandle()
1060 struct selabel_handle *selinux_restorecon_default_handle(void) in selinux_restorecon_default_handle()
1062 struct selabel_handle *sehandle; in selinux_restorecon_default_handle()
/external/selinux/libselinux/include/selinux/
Dlabel.h21 struct selabel_handle;
75 struct selabel_handle *selabel_open(unsigned int backend,
86 void selabel_close(struct selabel_handle *handle);
101 int selabel_lookup(struct selabel_handle *handle, char **con,
103 int selabel_lookup_raw(struct selabel_handle *handle, char **con,
106 bool selabel_partial_match(struct selabel_handle *handle, const char *key);
108 int selabel_lookup_best_match(struct selabel_handle *rec, char **con,
110 int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con,
126 int selabel_digest(struct selabel_handle *rec,
147 enum selabel_cmp_result selabel_cmp(struct selabel_handle *h1,
[all …]
Dandroid.h14 extern struct selabel_handle* selinux_android_file_context_handle(void);
16 extern struct selabel_handle* selinux_android_prop_context_handle(void);
18 extern struct selabel_handle* selinux_android_service_context_handle(void);
20 extern struct selabel_handle* selinux_android_hw_service_context_handle(void);
22 extern struct selabel_handle* selinux_android_vendor_service_context_handle(void);
24 extern void selinux_android_set_sehandle(const struct selabel_handle *hndl);
Drestorecon.h108 extern void selinux_restorecon_set_sehandle(struct selabel_handle *hndl);
118 extern struct selabel_handle *selinux_restorecon_default_handle(void);
/external/squashfs-tools/squashfs-tools/
Dandroid.c62 struct selabel_handle *get_sehnd(const char *context_file) { in get_sehnd()
69 struct selabel_handle *sehnd = in get_sehnd()
80 char *set_selabel(const char *path, unsigned int mode, struct selabel_handle *sehnd) { in set_selabel()
Dandroid.h26 struct selabel_handle *get_sehnd(const char *context_file);
27 char *set_selabel(const char *path, unsigned int mode, struct selabel_handle *sehnd);
/external/selinux/libselinux/src/android/
Dandroid.c1055 static struct selabel_handle *fc_sehandle = NULL;
1603 static struct selabel_handle* selinux_android_file_context(const struct selinux_opt *opts, in selinux_android_file_context()
1606 struct selabel_handle *sehandle; in selinux_android_file_context()
1634 struct selabel_handle* selinux_android_file_context_handle(void) in selinux_android_file_context_handle()
1644 struct selabel_handle* selinux_android_prop_context_handle(void) in selinux_android_prop_context_handle()
1646 struct selabel_handle* sehandle; in selinux_android_prop_context_handle()
1669 struct selabel_handle* selinux_android_service_open_context_handle(const struct selinux_opt* seopts… in selinux_android_service_open_context_handle()
1672 struct selabel_handle* sehandle; in selinux_android_service_open_context_handle()
1689 struct selabel_handle* selinux_android_service_context_handle(void) in selinux_android_service_context_handle()
1704 struct selabel_handle* selinux_android_hw_service_context_handle(void) in selinux_android_hw_service_context_handle()
[all …]
/external/e2fsprogs/contrib/android/
Dperms.c24 struct selabel_handle *sehnd;
257 struct selabel_handle *sehnd, in __android_configure_fs()
295 struct selabel_handle *sehnd = NULL; in android_configure_fs()
Dperms.h13 struct selabel_handle;
/external/selinux/libselinux/utils/
Dsefcontext_compile.c32 static int process_file(struct selabel_handle *rec, const char *filename) in process_file()
305 struct selabel_handle *rec = NULL; in main()
359 rec = (struct selabel_handle *)calloc(1, sizeof(*rec)); in main()
Dselabel_partial_match.c33 struct selabel_handle *hnd; in main()
Dselabel_lookup.c38 struct selabel_handle *hnd; in main()
Dselabel_lookup_best_match.c60 struct selabel_handle *hnd; in main()
Dselabel_digest.c72 struct selabel_handle *hnd; in main()
/external/selinux/policycoreutils/setfiles/
Drestore.h41 struct selabel_handle *hnd;
Drestorecon_xattr.c46 struct selabel_handle *hnd = NULL; in main()
/external/selinux/restorecond/
Drestore.h47 struct selabel_handle *hnd;
/external/toybox/toys/android/
Dgetprop.c29 struct selabel_handle *handle;

12