• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type tcpdump_logger, domain;
2type tcpdump_logger_exec, exec_type, vendor_file_type, file_type;
3
4userdebug_or_eng(`
5  # make transition from init to its domain
6  init_daemon_domain(tcpdump_logger)
7
8  allow tcpdump_logger self:capability {net_raw};
9  allow tcpdump_logger self:packet_socket { create setopt getopt ioctl read write };
10  allowxperm tcpdump_logger self:packet_socket ioctl 0x8933;
11  allow tcpdump_logger tcpdump_exec:file rx_file_perms;
12  allow tcpdump_logger tcpdump_vendor_data_file:dir create_dir_perms;
13  allow tcpdump_logger tcpdump_vendor_data_file:file create_file_perms;
14  allow tcpdump_logger radio_vendor_data_file:file create_file_perms;
15  allow tcpdump_logger radio_vendor_data_file:dir create_dir_perms;
16  allow tcpdump_logger cnss_vendor_data_file:file create_file_perms;
17  allow tcpdump_logger cnss_vendor_data_file:dir create_dir_perms;
18
19  set_prop(tcpdump_logger, vendor_tcpdump_log_prop)
20')
21