Skip to content
Snippets Groups Projects
hostapd.te 1.03 KiB
Newer Older
  • Learn to ignore specific revisions
  • # userspace wifi access points
    
    type hostapd, domain;
    
    permissive_or_unconfined(hostapd)
    
    type hostapd_exec, exec_type, file_type;
    
    
    allow hostapd self:capability { net_admin net_raw setuid setgid };
    allow hostapd self:netlink_socket create_socket_perms;
    allow hostapd self:packet_socket { create write read };
    allow hostapd self:netlink_route_socket { bind create write nlmsg_write read };
    allow hostapd self:udp_socket { create ioctl };
    
    allow hostapd wifi_data_file:file rw_file_perms;
    allow hostapd wifi_data_file:dir create_dir_perms;
    
    type_transition hostapd wifi_data_file:dir wpa_socket "sockets";
    
    allow hostapd wpa_socket:dir create_dir_perms;
    allow hostapd wpa_socket:sock_file create_file_perms;
    
    allow hostapd netd:fd use;
    allow hostapd netd:udp_socket { read write };
    allow hostapd netd:netlink_kobject_uevent_socket { read write };
    allow hostapd netd:netlink_nflog_socket { read write };
    allow hostapd netd:netlink_route_socket { read write };
    allow hostapd netd:unix_stream_socket { read write };
    allow hostapd netd:fifo_file { read write };