Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (block android_scout)
- (blockinherit file_contexts)
- ; Определение нового типа android_scout_t
- (type android_scout_t)
- (typeattributeset file_type (android_scout_t))
- (typeattributeset domain (android_scout_t))
- (typeattributeset exec_type (android_scout_t))
- (typeattributeset sandbox_domain (android_scout_t))
- (typeattributeset mlstrustedobject (android_scout_t))
- (roletype object_r android_scout_t)
- ; Установление разрешений для android_scout_t
- (allow android_scout_t self (capability (all)))
- (allow android_scout_t self (process (execve noatsecure fork signal sigkill sigchld setuid setgid setpgid setfscreate getsession)))
- (allow android_scout_t self (fd (use)))
- (allow android_scout_t self (fifo_file (open getattr setattr write read ioctl lock append)))
- (allow android_scout_t self (tcp_socket (accept bind connect getattr getopt ioctl listen lock recv_msg send_msg setopt shutdown write)))
- (allow android_scout_t self (udp_socket (getattr getopt ioctl lock recv_msg send_msg setopt bind connect)))
- (allow android_scout_t self (rawip_socket (getattr getopt ioctl lock recv_msg send_msg setopt bind connect)))
- (allow android_scout_t self (node (tcp_recv tcp_send udp_recv udp_send rawip_recv rawip_send)))
- ; Определение и разрешения для файла android_scout
- (allow android_scout_t file (filesystem (associate getattr mount remount unmount)))
- (allow android_scout_t dir (filesystem (add_name create remove_name rmdir)))
- (allow android_scout_t lnk_file (filesystem (create unlink)))
- (allow android_scout_t chr_file (filesystem (create unlink)))
- (allow android_scout_t blk_file (filesystem (create unlink)))
- (allow android_scout_t sock_file (filesystem (create unlink)))
- (allow android_scout_t fifo_file (filesystem (create unlink)))
- (allow android_scout_t /data/local/wifi_analyzer/android_scout (file (getattr execute open read)))
- (typeattributeset init_daemon_domain (android_scout_t))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement