Searched refs:secontext (Results 1 – 18 of 18) sorted by relevance
/system/vold/ |
D | Loop.cpp | 145 char *secontext = NULL; in create() local 157 rc = selabel_lookup(sehandle, &secontext, filename, S_IFBLK); in create() 159 setfscreatecon(secontext); in create() 166 if (secontext) { in create() 167 freecon(secontext); in create() 174 if (secontext) { in create() 175 freecon(secontext); in create()
|
D | Utils.cpp | 66 char* secontext = nullptr; in CreateDeviceNode() local 68 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { in CreateDeviceNode() 69 setfscreatecon(secontext); in CreateDeviceNode() 82 if (secontext) { in CreateDeviceNode() 84 freecon(secontext); in CreateDeviceNode() 102 char* secontext = nullptr; in PrepareDir() local 104 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { in PrepareDir() 105 setfscreatecon(secontext); in PrepareDir() 111 if (secontext) { in PrepareDir() 113 freecon(secontext); in PrepareDir()
|
D | Android.mk | 35 secontext.cpp \
|
/system/core/init/ |
D | devices.cpp | 227 char* secontext = nullptr; in MakeDevice() local 234 if (selabel_lookup_best_match(sehandle_, &secontext, path.c_str(), &c_links[0], mode)) { in MakeDevice() 238 setfscreatecon(secontext); in MakeDevice() 253 if (mknod(path.c_str(), mode, dev) && (errno == EEXIST) && secontext) { in MakeDevice() 261 bool different = strcmp(fcon, secontext) != 0; in MakeDevice() 264 if (different && lsetfilecon(path.c_str(), secontext)) { in MakeDevice() 265 PLOG(ERROR) << "Cannot set '" << secontext << "' SELinux label on '" << path in MakeDevice() 276 if (secontext) { in MakeDevice() 277 freecon(secontext); in MakeDevice()
|
D | util.cpp | 255 char *secontext = NULL; in make_dir() local 258 selabel_lookup(sehandle, &secontext, path, mode); in make_dir() 259 setfscreatecon(secontext); in make_dir() 264 if (secontext) { in make_dir() 266 freecon(secontext); in make_dir()
|
/system/extras/ext4_utils/ |
D | make_ext4fs.c | 127 char *secontext = NULL; in build_default_directory_structure() local 130 if (selabel_lookup(sehnd, &secontext, path, S_IFDIR) < 0) { in build_default_directory_structure() 133 inode_set_selinux(inode, secontext); in build_default_directory_structure() 134 freecon(secontext); in build_default_directory_structure() 862 char *secontext = NULL; in make_ext4fs_internal() local 864 if (selabel_lookup(sehnd, &secontext, mountpoint, S_IFDIR) < 0) { in make_ext4fs_internal() 867 if (secontext) { in make_ext4fs_internal() 869 printf("Labeling %s as %s\n", mountpoint, secontext); in make_ext4fs_internal() 871 inode_set_selinux(root_inode_num, secontext); in make_ext4fs_internal() 873 freecon(secontext); in make_ext4fs_internal()
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | isolated_app.te | 33 # is modified to change the secontext when accessing the lower filesystem.
|
D | adbd.te | 124 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | app.te | 226 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/public/ |
D | kernel.te | 75 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | mediaserver.te | 122 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | dumpstate.te | 208 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | kernel.te | 74 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | mediaserver.te | 122 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | dumpstate.te | 193 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/private/ |
D | isolated_app.te | 33 # is modified to change the secontext when accessing the lower filesystem.
|
D | adbd.te | 126 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | app.te | 239 # This should be removed if sdcardfs is modified to alter the secontext for its
|