Home
last modified time | relevance | path

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

/external/erofs-utils/lib/
Dconfig.c41 if (cfg.sehnd) in erofs_exit_configure()
42 selabel_close(cfg.sehnd); in erofs_exit_configure()
69 if (cfg.sehnd) { in erofs_selabel_open()
75 cfg.sehnd = selabel_open(SELABEL_CTX_FILE, seopts, 1); in erofs_selabel_open()
76 if (!cfg.sehnd) { in erofs_selabel_open()
Dxattr.c194 if (cfg.sehnd) { in erofs_get_selabel_xattr()
210 ret = selabel_lookup(cfg.sehnd, &secontext, fspath, mode); in erofs_get_selabel_xattr()
286 if (cfg.sehnd && !strcmp(key, XATTR_SECURITY_PREFIX "selinux")) in erofs_is_skipped_xattr()
/external/squashfs-tools/squashfs-tools/
Dandroid.c70 struct selabel_handle *sehnd = in get_sehnd() local
73 if (!sehnd) { in get_sehnd()
77 return sehnd; in get_sehnd()
81 char *set_selabel(const char *path, unsigned int mode, struct selabel_handle *sehnd) { in set_selabel() argument
83 if (sehnd != NULL) { in set_selabel()
94 if (selabel_lookup(sehnd, &secontext, full_name, mode)) { in set_selabel()
Dxattr.c69 static struct selabel_handle *sehnd = NULL; variable
161 struct selabel_handle *sehnd, struct xattr_list *xattrs) in read_selinux_xattr_from_sehnd() argument
166 attr_val = set_selabel(filename, mode, sehnd); in read_selinux_xattr_from_sehnd()
700 if (sehnd == NULL) in read_xattrs()
701 sehnd = get_sehnd(context_file); in read_xattrs()
707 sehnd, next_xattr); in read_xattrs()
712 sehnd, next_xattr); in read_xattrs()
Dandroid.h27 char *set_selabel(const char *path, unsigned int mode, struct selabel_handle *sehnd);
/external/e2fsprogs/contrib/android/
Dperms.c24 struct selabel_handle *sehnd; member
71 if (params->sehnd == NULL) in set_selinux_xattr()
81 retval = selabel_lookup(params->sehnd, &secontext, params->filename, in set_selinux_xattr()
290 struct selabel_handle *sehnd, in __android_configure_fs() argument
301 .sehnd = sehnd, in __android_configure_fs()
336 struct selabel_handle *sehnd = NULL; in android_configure_fs() local
341 sehnd = selabel_open(SELABEL_CTX_FILE, seopts, nopt); in android_configure_fs()
342 if (!sehnd) { in android_configure_fs()
351 sehnd = selinux_android_file_context_handle(); in android_configure_fs()
352 if (!sehnd) { in android_configure_fs()
[all …]
/external/f2fs-tools/fsck/
Dsload.c23 static struct selabel_handle *sehnd = NULL; variable
73 if (!sehnd) in set_selinux_xattr()
83 if (selabel_lookup(sehnd, &secontext, mnt_path, mode) < 0) { in set_selinux_xattr()
301 sehnd = selabel_open(SELABEL_CTX_FILE, c.seopt_file, c.nr_opt); in configure_files()
302 if (!sehnd) { in configure_files()
308 sehnd = selinux_android_file_context_handle(); in configure_files()
309 if (!sehnd) { in configure_files()
/external/erofs-utils/include/erofs/
Dconfig.h46 struct selabel_handle *sehnd; member