--- /dev/null
+# argosd.te
+
+type argosd, domain;
+type argosd_exec, exec_type, vendor_file_type, file_type;
+
+# argosd is started by init, type transit from init domain to gpsd domain
+init_daemon_domain(argosd)
+
+# /dev/network_throughput
+allow argosd radio_qos_device:chr_file rw_file_perms;
+
+# /proc/net/dev
+allow argosd proc_net:file r_file_perms;
+
+# /sys/
+allow argosd sysfs:dir r_dir_perms;
+
+# /sys/devices/platform/argos
+# /sys/firmware/devicetree/base/argos
+allow argosd sysfs_argos:dir r_dir_perms;
+allow argosd sysfs_argos:file r_file_perms;
+
+# /sys/class/scsi_host/host0
+allow argosd sysfs_scsi_host_writable:dir r_dir_perms;
+allow argosd sysfs_scsi_host_writable:file r_file_perms;
type drb_device, dev_type;
type fp_sensor_device, dev_type;
type io_device, dev_type;
+type radio_qos_device, dev_type;
type ssp_device, dev_type;
type vendor_radio_device, dev_type;
type wifi_efs_file, file_type;
### SYSFS
+type sysfs_argos, sysfs_type, r_fs_type, fs_type;
type sysfs_battery, sysfs_type, r_fs_type, fs_type;
type sysfs_fingerprint, sysfs_type, r_fs_type, fs_type;
type sysfs_iio, sysfs_type, r_fs_type, fs_type;
type sysfs_gps_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_lcd_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_power_writable, sysfs_type, rw_fs_type, fs_type;
+type sysfs_scsi_host_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_sensorhub_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_sensors_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_sim_writable, sysfs_type, rw_fs_type, fs_type;
/dev/bbd_urgent_patch u:object_r:bbd_device:s0
/dev/ttyBCM[0-9]* u:object_r:bbd_device:s0
+### qos
+/dev/network_throughput u:object_r:radio_qos_device:s0
+
### radio
# DRB
/dev/drb u:object_r:drb_device:s0
genfscon sysfs /class/timed_output/vibrator/intensity u:object_r:sysfs_vibrator:s0
genfscon sysfs /class/timed_output/vibrator/multi_freq u:object_r:sysfs_vibrator:s0
+genfscon sysfs /devices/platform/argos u:object_r:sysfs_argos:s0
genfscon sysfs /devices/platform/battery/power_supply u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/battery/power_supply/battery/lcd u:object_r:sysfs_battery_writable:s0
genfscon sysfs /devices/platform/panel@0/backlight/panel/brightness u:object_r:sysfs_backlight_writable:s0