Home
last modified time | relevance | path

Searched refs:secontext (Results 1 – 4 of 4) sorted by relevance

/external/squashfs-tools/squashfs-tools/
Dandroid.c81 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/
Dsload.c231 char *secontext = NULL; in f2fs_sload() local
234 if (selabel_lookup(sehnd, &secontext, mount_point, S_IFDIR) < 0) in f2fs_sload()
237 if (secontext) { in f2fs_sload()
239 mount_point, secontext, F2FS_ROOT_INO(sbi)); in f2fs_sload()
241 inode_set_selinux(sbi, F2FS_ROOT_INO(sbi), secontext); in f2fs_sload()
243 free(secontext); in f2fs_sload()
/external/e2fsprogs/contrib/android/
Dperms.c71 char *secontext = NULL; in set_selinux_xattr() local
84 retval = selabel_lookup(params->sehnd, &secontext, params->filename, in set_selinux_xattr()
93 secontext, strlen(secontext) + 1); in set_selinux_xattr()
95 freecon(secontext); in set_selinux_xattr()
/external/selinux/libselinux/src/android/
Dandroid_platform.c1229 char *secontext = *secontextp; in pkgdir_selabel_lookup() local
1295 ctx = context_new(secontext); in pkgdir_selabel_lookup()
1304 secontext = context_str(ctx); in pkgdir_selabel_lookup()
1305 if (!secontext) in pkgdir_selabel_lookup()
1308 if (!strcmp(secontext, *secontextp)) in pkgdir_selabel_lookup()
1311 rc = security_check_context(secontext); in pkgdir_selabel_lookup()
1316 *secontextp = strdup(secontext); in pkgdir_selabel_lookup()
1339 char *secontext = NULL; in restorecon_sb() local
1343 if (selabel_lookup(fc_sehandle, &secontext, pathname, sb->st_mode) < 0) in restorecon_sb()
1360 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0) in restorecon_sb()
[all …]