]> git.ipfire.org Git - people/stevee/selinux-policy.git/blob - policy/modules/apps/loadkeys.te
Bump module versions for release.
[people/stevee/selinux-policy.git] / policy / modules / apps / loadkeys.te
1
2 policy_module(loadkeys, 1.7.0)
3
4 ########################################
5 #
6 # Declarations
7 #
8
9 # cjp: this should probably be rewritten
10 # per user domain, since it can rw
11 # all user domain ttys
12 type loadkeys_t;
13 type loadkeys_exec_t;
14 init_system_domain(loadkeys_t, loadkeys_exec_t)
15
16 ########################################
17 #
18 # Local policy
19 #
20
21 allow loadkeys_t self:capability { dac_override dac_read_search setuid sys_tty_config };
22 allow loadkeys_t self:fifo_file rw_fifo_file_perms;
23
24 kernel_read_system_state(loadkeys_t)
25
26 corecmd_exec_bin(loadkeys_t)
27 corecmd_exec_shell(loadkeys_t)
28
29 files_read_etc_files(loadkeys_t)
30 files_read_etc_runtime_files(loadkeys_t)
31
32 term_dontaudit_use_console(loadkeys_t)
33 term_use_unallocated_ttys(loadkeys_t)
34
35 init_dontaudit_use_fds(loadkeys_t)
36 init_dontaudit_use_script_ptys(loadkeys_t)
37
38 locallogin_use_fds(loadkeys_t)
39
40 miscfiles_read_localization(loadkeys_t)
41
42 userdom_use_user_ttys(loadkeys_t)
43 userdom_list_user_home_content(loadkeys_t)
44
45 ifdef(`hide_broken_symptoms',`
46 dev_dontaudit_rw_lvm_control(loadkeys_t)
47 ')
48
49 optional_policy(`
50 nscd_dontaudit_search_pid(loadkeys_t)
51 ')