huangcm
2024-12-18 9d29be7f7249789d6ffd0440067187a9f040c2cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type systemmix, domain, mlstrustedsubject;
type systemmix_exec,exec_type,file_type,system_file_type;
init_daemon_domain(systemmix);
typeattribute systemmix coredomain;
allow systemmix servicemanager:binder { call transfer };
#allow systemmix systemmix:capability dac_override;
allow systemmix fuse:dir { search };
allow systemmix fuse:file { r_file_perms };
allow systemmix vfat:file create_file_perms;
allow systemmix vfat:dir w_dir_perms;
allow systemmix softwinner_service:service_manager add;
allow systemmix softwinner_service:service_manager find;
allow systemmix storage_file:dir r_dir_perms;
#samba
allow systemmix systemmix:capability sys_admin;
#allow systemmix app_data_file:dir {search mounton};
allow systemmix kernel:system {module_request};
#allow systemmix self:capability { dac_read_search};
allow systemmix unlabeled:filesystem mount;
allow systemmix tmpfs:dir mounton;
allow systemmix unlabeled:dir mounton;
allow systemmix unlabeled:filesystem unmount;
#file
#allow systemmix proc:file r_file_perms;
allow systemmix system_data_file:lnk_file {open read};
allow systemmix sdcardfs:file r_file_perms;
allow systemmix sdcardfs:dir r_dir_perms;
allow systemmix storage_file:lnk_file read;
allow systemmix mnt_user_file:lnk_file read;
allow systemmix media_rw_data_file:file rw_file_perms;
allow systemmix mnt_user_file:dir r_dir_perms;