Home
last modified time | relevance | path

Searched refs:secontext (Results 1 – 13 of 13) sorted by relevance

/system/vold/
DLoop.cpp138 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()
DUtils.cpp64 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()
DAndroid.mk33 secontext.cpp \
/system/extras/ext4_utils/
Dmake_ext4fs.c122 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/
Dutil.cpp445 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()
Ddevices.cpp241 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/
Dbluetooth.te58 # This should be removed if sdcardfs is modified to alter the secontext for its
Dadbd.te110 # This should be removed if sdcardfs is modified to alter the secontext for its
Dmediaserver.te118 # This should be removed if sdcardfs is modified to alter the secontext for its
Dkernel.te69 # This should be removed if sdcardfs is modified to alter the secontext for its
Dshell.te134 # This should be removed if sdcardfs is modified to alter the secontext for its
Ddumpstate.te173 # This should be removed if sdcardfs is modified to alter the secontext for its
Dsystem_server.te519 # This should be removed if sdcardfs is modified to alter the secontext for its