Searched refs:secontext (Results 1 – 5 of 5) sorted by relevance
/external/squashfs-tools/squashfs-tools/ |
D | android.c | 82 char *secontext; in set_selabel() local 94 if (selabel_lookup(sehnd, &secontext, full_name, mode)) { in set_selabel() 95 secontext = strdup("u:object_r:unlabeled:s0"); in set_selabel() 99 return secontext; in set_selabel()
|
/external/f2fs-tools/fsck/ |
D | sload.c | 70 char *secontext = NULL; in set_selinux_xattr() local 83 if (selabel_lookup(sehnd, &secontext, mnt_path, mode) < 0) { in set_selinux_xattr() 89 if (secontext) { in set_selinux_xattr() 91 mnt_path, ino, secontext); in set_selinux_xattr() 92 inode_set_selinux(sbi, ino, secontext); in set_selinux_xattr() 94 freecon(secontext); in set_selinux_xattr()
|
/external/e2fsprogs/contrib/android/ |
D | perms.c | 68 char *secontext = NULL; in set_selinux_xattr() local 81 retval = selabel_lookup(params->sehnd, &secontext, params->filename, in set_selinux_xattr() 91 secontext, strlen(secontext) + 1); in set_selinux_xattr() 93 freecon(secontext); in set_selinux_xattr()
|
/external/selinux/libselinux/src/android/ |
D | android_platform.c | 1204 char *secontext = *secontextp; in pkgdir_selabel_lookup() local 1270 ctx = context_new(secontext); in pkgdir_selabel_lookup() 1279 secontext = context_str(ctx); in pkgdir_selabel_lookup() 1280 if (!secontext) in pkgdir_selabel_lookup() 1283 if (!strcmp(secontext, *secontextp)) in pkgdir_selabel_lookup() 1286 rc = security_check_context(secontext); in pkgdir_selabel_lookup() 1291 *secontextp = strdup(secontext); in pkgdir_selabel_lookup() 1314 char *secontext = NULL; in restorecon_sb() local 1318 if (selabel_lookup(fc_sehandle, &secontext, pathname, sb->st_mode) < 0) in restorecon_sb() 1335 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0) in restorecon_sb() [all …]
|
/external/erofs-utils/lib/ |
D | xattr.c | 195 char *secontext; in erofs_get_selabel_xattr() local 210 ret = selabel_lookup(cfg.sehnd, &secontext, fspath, mode); in erofs_get_selabel_xattr() 225 len[1] = strlen(secontext); in erofs_get_selabel_xattr() 228 freecon(secontext); in erofs_get_selabel_xattr() 231 sprintf(kvbuf, "selinux%s", secontext); in erofs_get_selabel_xattr() 232 freecon(secontext); in erofs_get_selabel_xattr()
|