blob: 58d4dd97d7265d56aba5ea1f5a2c00b6e48d2d3c [file] [log] [blame]
type inputeventfind, domain;
type inputeventfind_exec, exec_type, file_type;
init_daemon_domain(inputeventfind)
# search for appropriate input device
allow inputeventfind input_device:dir r_dir_perms;
allow inputeventfind input_device:chr_file r_file_perms;
# create symlink to /dev/stm_sensor
allow inputeventfind device:dir { add_name write };
allow inputeventfind camera_device:lnk_file create;
type_transition inputeventfind device:lnk_file camera_device;