Home
last modified time | relevance | path

Searched refs:secontext (Results 1 – 3 of 3) 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/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.c1230 char *secontext = *secontextp; in pkgdir_selabel_lookup() local
1296 ctx = context_new(secontext); in pkgdir_selabel_lookup()
1305 secontext = context_str(ctx); in pkgdir_selabel_lookup()
1306 if (!secontext) in pkgdir_selabel_lookup()
1309 if (!strcmp(secontext, *secontextp)) in pkgdir_selabel_lookup()
1312 rc = security_check_context(secontext); in pkgdir_selabel_lookup()
1317 *secontextp = strdup(secontext); in pkgdir_selabel_lookup()
1340 char *secontext = NULL; in restorecon_sb() local
1344 if (selabel_lookup(fc_sehandle, &secontext, pathname, sb->st_mode) < 0) in restorecon_sb()
1361 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0) in restorecon_sb()
[all …]