/build/tools/fs_config/ |
fs_config.c | 138 char* secontext; local 139 if (selabel_lookup(sehnd, &secontext, full_name, ( mode | (is_dir ? S_IFDIR : S_IFREG)))) { 140 secontext = strdup("u:object_r:unlabeled:s0"); 143 printf(" selabel=%s", secontext); 145 freecon(secontext);
|
/external/yaffs2/yaffs2/utils/ |
mkyaffs2image.c | 258 static int write_object_header(int objId, yaffs_ObjectType t, struct stat *s, int parent, const char *name, int equivalentObj, const char * alias, const char *secontext) 269 if (secontext) { 270 xvalsize = strlen(secontext) + 1; 287 memcpy(xb, secontext, xvalsize); 338 char *secontext = NULL; local 389 if (selabel_lookup(sehnd, &secontext, 422 error = write_object_header(newObj, YAFFS_OBJECT_TYPE_HARDLINK, &stats, parent, entry->d_name, equivalentObj, NULL, secontext); 439 error = write_object_header(newObj, YAFFS_OBJECT_TYPE_SYMLINK, &stats, parent, entry->d_name, -1, symname, secontext); 445 error = write_object_header(newObj, YAFFS_OBJECT_TYPE_FILE, &stats, parent, entry->d_name, -1, NULL, secontext); 481 error = write_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL, secontext); 541 char *secontext = NULL; local [all...] |
/bootable/recovery/minzip/ |
DirUtil.c | 148 char *secontext = NULL; local 151 selabel_lookup(sehnd, &secontext, cpath, mode); 152 setfscreatecon(secontext); 157 if (secontext) { 158 freecon(secontext);
|
Zip.c | 1063 char *secontext = NULL; local 1066 selabel_lookup(sehnd, &secontext, targetFile, UNZIP_FILEMODE); 1067 setfscreatecon(secontext); 1073 if (secontext) { 1074 freecon(secontext); [all...] |
/external/qemu/distrib/ext4_utils/src/ |
make_ext4fs.c | 104 char *secontext = NULL; local 107 if (selabel_lookup(sehnd, &secontext, path, S_IFDIR) < 0) { 110 inode_set_selinux(inode, secontext); 111 freecon(secontext); 601 char *secontext = NULL; local 603 if (selabel_lookup(sehnd, &secontext, mountpoint, S_IFDIR) < 0) { 606 if (secontext) { 608 printf("Labeling %s as %s\n", mountpoint, secontext); 610 inode_set_selinux(root_inode_num, secontext); 612 freecon(secontext); [all...] |
/system/extras/ext4_utils/ |
make_ext4fs.c | 104 char *secontext = NULL; local 107 if (selabel_lookup(sehnd, &secontext, path, S_IFDIR) < 0) { 110 inode_set_selinux(inode, secontext); 111 freecon(secontext); 606 char *secontext = NULL; local 608 if (selabel_lookup(sehnd, &secontext, mountpoint, S_IFDIR) < 0) { 611 if (secontext) { 613 printf("Labeling %s as %s\n", mountpoint, secontext); 615 inode_set_selinux(root_inode_num, secontext); 617 freecon(secontext); [all...] |
/system/core/init/ |
util.c | 509 char *secontext = NULL; local 512 selabel_lookup(sehandle, &secontext, path, mode); 513 setfscreatecon(secontext); 518 if (secontext) { 520 freecon(secontext);
|
devices.c | 243 char *secontext = NULL; local 248 selabel_lookup_best_match(sehandle, &secontext, path, links, mode); 249 setfscreatecon(secontext); 263 if (secontext) { 264 freecon(secontext);
|
/external/libselinux/src/ |
android.c | 1044 char *secontext = *secontextp; local 1086 ctx = context_new(secontext); 1095 secontext = context_str(ctx); 1096 if (!secontext) 1099 if (!strcmp(secontext, *secontextp)) 1102 rc = security_check_context(secontext); 1107 *secontextp = strdup(secontext); 1130 char *secontext = NULL; local 1134 if (selabel_lookup(sehandle, &secontext, pathname, sb->st_mode) < 0) 1148 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0 [all...] |
/external/qemu/distrib/libselinux/src/ |
android.c | 1018 char *secontext = *secontextp; local 1060 ctx = context_new(secontext); 1069 secontext = context_str(ctx); 1070 if (!secontext) 1073 if (!strcmp(secontext, *secontextp)) 1076 rc = security_check_context(secontext); 1081 *secontextp = strdup(secontext); 1104 char *secontext = NULL; local 1108 if (selabel_lookup(sehandle, &secontext, pathname, sb->st_mode) < 0) 1122 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0 [all...] |
/bootable/recovery/updater/ |
install.c | 136 char *secontext = NULL; local 139 selabel_lookup(sehandle, &secontext, mount_point, 0755); 140 setfscreatecon(secontext); 145 if (secontext) { 146 freecon(secontext); [all...] |