1type inputeventfind, domain; 2type inputeventfind_exec, exec_type, file_type; 3 4init_daemon_domain(inputeventfind) 5 6# search for appropriate input device 7allow inputeventfind input_device:dir r_dir_perms; 8allow inputeventfind input_device:chr_file r_file_perms; 9 10# create symlink to /dev/stm_sensor 11allow inputeventfind device:dir { add_name write }; 12allow inputeventfind camera_device:lnk_file create; 13type_transition inputeventfind device:lnk_file camera_device; 14