/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 | 463 char *secontext = NULL; local 466 selabel_lookup(sehandle, &secontext, path, mode); 467 setfscreatecon(secontext); 472 if (secontext) { 474 freecon(secontext); 484 char *secontext = NULL; local 493 if (selabel_lookup(sehandle, &secontext, pathname, sb.st_mode) < 0) 495 if (lsetfilecon(pathname, secontext) < 0) { 496 freecon(secontext); 499 freecon(secontext); [all...] |
devices.c | 193 char *secontext = NULL; local 198 selabel_lookup(sehandle, &secontext, path, mode); 199 setfscreatecon(secontext); 213 if (secontext) { 214 freecon(secontext);
|
/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 | 81 char *secontext = NULL; local 84 selabel_lookup(sehandle, &secontext, mount_point, 0755); 85 setfscreatecon(secontext); 90 if (secontext) { 91 freecon(secontext); [all...] |