Searched refs:secontext (Results 1 – 4 of 4) sorted by relevance
/external/squashfs-tools/squashfs-tools/ |
D | android.c | 81 char *secontext; in set_selabel() local 93 if (selabel_lookup(sehnd, &secontext, full_name, mode)) { in set_selabel() 94 secontext = strdup("u:object_r:unlabeled:s0"); in set_selabel() 98 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 | 1147 char *secontext = *secontextp; in pkgdir_selabel_lookup() local 1213 ctx = context_new(secontext); in pkgdir_selabel_lookup() 1222 secontext = context_str(ctx); in pkgdir_selabel_lookup() 1223 if (!secontext) in pkgdir_selabel_lookup() 1226 if (!strcmp(secontext, *secontextp)) in pkgdir_selabel_lookup() 1229 rc = security_check_context(secontext); in pkgdir_selabel_lookup() 1234 *secontextp = strdup(secontext); in pkgdir_selabel_lookup() 1257 char *secontext = NULL; in restorecon_sb() local 1261 if (selabel_lookup(fc_sehandle, &secontext, pathname, sb->st_mode) < 0) in restorecon_sb() 1278 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0) in restorecon_sb() [all …]
|