Home
last modified time | relevance | path

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

/system/vold/
DLoop.cpp145 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()
DUtils.cpp66 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()
DAndroid.mk35 secontext.cpp \
/system/core/init/
Ddevices.cpp227 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()
Dutil.cpp255 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/
Dmake_ext4fs.c127 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/
Disolated_app.te33 # is modified to change the secontext when accessing the lower filesystem.
Dadbd.te124 # This should be removed if sdcardfs is modified to alter the secontext for its
Dapp.te226 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/public/
Dkernel.te75 # This should be removed if sdcardfs is modified to alter the secontext for its
Dmediaserver.te122 # This should be removed if sdcardfs is modified to alter the secontext for its
Ddumpstate.te208 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/prebuilts/api/26.0/public/
Dkernel.te74 # This should be removed if sdcardfs is modified to alter the secontext for its
Dmediaserver.te122 # This should be removed if sdcardfs is modified to alter the secontext for its
Ddumpstate.te193 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/private/
Disolated_app.te33 # is modified to change the secontext when accessing the lower filesystem.
Dadbd.te126 # This should be removed if sdcardfs is modified to alter the secontext for its
Dapp.te239 # This should be removed if sdcardfs is modified to alter the secontext for its