/build/tools/fs_config/ |
fs_config.c | 141 char* secontext; local 142 if (selabel_lookup(sehnd, &secontext, full_name, ( mode | (is_dir ? S_IFDIR : S_IFREG)))) { 143 secontext = strdup("u:object_r:unlabeled:s0"); 146 printf(" selabel=%s", secontext); 148 freecon(secontext);
|
/external/squashfs-tools/squashfs-tools/ |
android.c | 76 char *secontext; local 88 if (selabel_lookup(sehnd, &secontext, full_name, mode)) { 89 secontext = strdup("u:object_r:unlabeled:s0"); 93 return 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 | 962 char *secontext = NULL; local 965 selabel_lookup(sehnd, &secontext, targetFile, UNZIP_FILEMODE); 966 setfscreatecon(secontext); 972 if (secontext) { 973 freecon(secontext);
|
/system/vold/ |
Loop.cpp | 138 char *secontext = NULL; local 150 rc = selabel_lookup(sehandle, &secontext, filename, S_IFBLK); 152 setfscreatecon(secontext); 159 if (secontext) { 160 freecon(secontext); 167 if (secontext) { 168 freecon(secontext);
|
Utils.cpp | 64 char* secontext = nullptr; local 66 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { 67 setfscreatecon(secontext); 80 if (secontext) { 82 freecon(secontext); 100 char* secontext = nullptr; local 102 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { 103 setfscreatecon(secontext); 109 if (secontext) { 111 freecon(secontext); [all...] |
Android.mk | 33 secontext.cpp \
|
/system/core/init/ |
util.cpp | 445 char *secontext = NULL; local 448 selabel_lookup(sehandle, &secontext, path, mode); 449 setfscreatecon(secontext); 454 if (secontext) { 456 freecon(secontext);
|
devices.cpp | 241 char *secontext = NULL; local 245 if (selabel_lookup_best_match(sehandle, &secontext, path, links, mode)) { 250 setfscreatecon(secontext); 262 if (lsetfilecon(path, secontext)) { 264 secontext, path, strerror(errno)); 270 freecon(secontext);
|
/external/libselinux/src/ |
android.c | 1116 char *secontext = *secontextp; local 1182 ctx = context_new(secontext); 1191 secontext = context_str(ctx); 1192 if (!secontext) 1195 if (!strcmp(secontext, *secontextp)) 1198 rc = security_check_context(secontext); 1203 *secontextp = strdup(secontext); 1226 char *secontext = NULL; local 1230 if (selabel_lookup(fc_sehandle, &secontext, pathname, sb->st_mode) < 0) 1247 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0 [all...] |
/system/extras/ext4_utils/ |
make_ext4fs.c | 122 char *secontext = NULL; local 125 if (selabel_lookup(sehnd, &secontext, path, S_IFDIR) < 0) { 128 inode_set_selinux(inode, secontext); 129 freecon(secontext); 820 char *secontext = NULL; local 822 if (selabel_lookup(sehnd, &secontext, mountpoint, S_IFDIR) < 0) { 825 if (secontext) { 827 printf("Labeling %s as %s\n", mountpoint, secontext); 829 inode_set_selinux(root_inode_num, secontext); 831 freecon(secontext); [all...] |
/bootable/recovery/updater/ |
install.cpp | 159 char *secontext = NULL; local 162 selabel_lookup(sehandle, &secontext, mount_point, 0755); 163 setfscreatecon(secontext); 168 if (secontext) { 169 freecon(secontext); [all...] |