Searched refs:secontext (Results 1 – 13 of 13) sorted by relevance
/system/vold/ |
D | Loop.cpp | 138 char *secontext = NULL; in create() local 150 rc = selabel_lookup(sehandle, &secontext, filename, S_IFBLK); in create() 152 setfscreatecon(secontext); in create() 159 if (secontext) { in create() 160 freecon(secontext); in create() 167 if (secontext) { in create() 168 freecon(secontext); in create()
|
D | Utils.cpp | 64 char* secontext = nullptr; in CreateDeviceNode() local 66 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { in CreateDeviceNode() 67 setfscreatecon(secontext); in CreateDeviceNode() 80 if (secontext) { in CreateDeviceNode() 82 freecon(secontext); in CreateDeviceNode() 100 char* secontext = nullptr; in PrepareDir() local 102 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { in PrepareDir() 103 setfscreatecon(secontext); in PrepareDir() 109 if (secontext) { in PrepareDir() 111 freecon(secontext); in PrepareDir()
|
D | Android.mk | 33 secontext.cpp \
|
/system/extras/ext4_utils/ |
D | make_ext4fs.c | 122 char *secontext = NULL; in build_default_directory_structure() local 125 if (selabel_lookup(sehnd, &secontext, path, S_IFDIR) < 0) { in build_default_directory_structure() 128 inode_set_selinux(inode, secontext); in build_default_directory_structure() 129 freecon(secontext); in build_default_directory_structure() 820 char *secontext = NULL; in make_ext4fs_internal() local 822 if (selabel_lookup(sehnd, &secontext, mountpoint, S_IFDIR) < 0) { in make_ext4fs_internal() 825 if (secontext) { in make_ext4fs_internal() 827 printf("Labeling %s as %s\n", mountpoint, secontext); in make_ext4fs_internal() 829 inode_set_selinux(root_inode_num, secontext); in make_ext4fs_internal() 831 freecon(secontext); in make_ext4fs_internal()
|
/system/core/init/ |
D | util.cpp | 445 char *secontext = NULL; in make_dir() local 448 selabel_lookup(sehandle, &secontext, path, mode); in make_dir() 449 setfscreatecon(secontext); in make_dir() 454 if (secontext) { in make_dir() 456 freecon(secontext); in make_dir()
|
D | devices.cpp | 241 char *secontext = NULL; in make_device() local 245 if (selabel_lookup_best_match(sehandle, &secontext, path, links, mode)) { in make_device() 250 setfscreatecon(secontext); in make_device() 262 if (lsetfilecon(path, secontext)) { in make_device() 264 secontext, path, strerror(errno)); in make_device() 270 freecon(secontext); in make_device()
|
/system/sepolicy/ |
D | bluetooth.te | 58 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | adbd.te | 110 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | mediaserver.te | 118 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | kernel.te | 69 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | shell.te | 134 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | dumpstate.te | 173 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | system_server.te | 519 # This should be removed if sdcardfs is modified to alter the secontext for its
|