/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...] |
/system/core/init/ |
util.c | 477 char *secontext = NULL; local 480 selabel_lookup(sehandle, &secontext, path, mode); 481 setfscreatecon(secontext); 486 if (secontext) { 488 freecon(secontext); 498 char *secontext = NULL; local 507 if (selabel_lookup(sehandle, &secontext, pathname, sb.st_mode) < 0) 509 if (lsetfilecon(pathname, secontext) < 0) { 510 freecon(secontext); 513 freecon(secontext); [all...] |
devices.c | 130 char *secontext; local 153 secontext = NULL; 154 selabel_lookup(sehandle, &secontext, buf, 0); 155 if (secontext) { 156 setfilecon(buf, secontext); 157 freecon(secontext); 202 char *secontext = NULL; local 207 selabel_lookup(sehandle, &secontext, path, mode); 208 setfscreatecon(secontext); 222 if (secontext) { [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 | 1119 char *secontext = NULL; local [all...] |
/system/extras/ext4_utils/ |
make_ext4fs.c | 580 char *secontext = NULL; local 582 if (selabel_lookup(sehnd, &secontext, mountpoint, S_IFDIR) < 0) { 585 if (secontext) { 587 printf("Labeling %s as %s\n", mountpoint, secontext); 589 inode_set_selinux(root_inode_num, secontext); 591 freecon(secontext);
|
/bootable/recovery/updater/ |
install.c | 89 char *secontext = NULL; local 92 selabel_lookup(sehandle, &secontext, mount_point, 0755); 93 setfscreatecon(secontext); 98 if (secontext) { 99 freecon(secontext); [all...] |