Searched refs:secon (Results 1 – 4 of 4) sorted by relevance
/system/extras/ext4_utils/ |
D | contents.h | 32 char *secon; member 41 int inode_set_selinux(u32 inode_num, const char *secon);
|
D | make_ext4fs.c | 185 if (selabel_lookup(sehnd, &dentries[i].secon, dentries[i].path, stat.st_mode) < 0) { in build_directory_structure() 189 if (dentries[i].secon && verbose) in build_directory_structure() 190 printf("Labeling %s as %s\n", dentries[i].path, dentries[i].secon); in build_directory_structure() 235 if (selabel_lookup(sehnd, &dentries[0].secon, dentries[0].path, dentries[0].mode) < 0) in build_directory_structure() 283 ret = inode_set_selinux(entry_inode, dentries[i].secon); in build_directory_structure() 294 free(dentries[i].secon); in build_directory_structure()
|
D | contents.c | 456 int inode_set_selinux(u32 inode_num, const char *secon) in inode_set_selinux() argument 458 if (!secon) in inode_set_selinux() 462 XATTR_SELINUX_SUFFIX, secon, strlen(secon) + 1); in inode_set_selinux()
|
/system/core/init/ |
D | util.c | 90 char *secon; in create_socket() local 109 secon = NULL; in create_socket() 111 ret = selabel_lookup(sehandle, &secon, addr.sun_path, S_IFSOCK); in create_socket() 113 setfscreatecon(secon); in create_socket() 123 freecon(secon); in create_socket()
|