File: loadkeys.te

package info (click to toggle)
refpolicy 2%3A2.20161023.1-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 19,804 kB
  • ctags: 407
  • sloc: xml: 115,713; python: 2,367; makefile: 625; ansic: 299; sh: 122; sed: 20; awk: 7
file content (57 lines) | stat: -rw-r--r-- 1,269 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
policy_module(loadkeys, 1.10.0)

########################################
#
# Declarations
#

attribute_role loadkeys_roles;

type loadkeys_t;
type loadkeys_exec_t;
init_system_domain(loadkeys_t, loadkeys_exec_t)
role loadkeys_roles types loadkeys_t;

########################################
#
# Local policy
#

allow loadkeys_t self:capability { dac_override dac_read_search setuid sys_tty_config };
allow loadkeys_t self:fifo_file rw_fifo_file_perms;

kernel_read_system_state(loadkeys_t)

corecmd_exec_bin(loadkeys_t)
corecmd_exec_shell(loadkeys_t)

files_read_etc_files(loadkeys_t)
files_read_etc_runtime_files(loadkeys_t)
# keymap files are in /usr/share/keymaps or /usr/share/kbd/keymaps
files_read_usr_files(loadkeys_t)

term_dontaudit_use_console(loadkeys_t)
term_use_unallocated_ttys(loadkeys_t)

init_dontaudit_use_fds(loadkeys_t)
init_dontaudit_use_script_ptys(loadkeys_t)

locallogin_use_fds(loadkeys_t)

miscfiles_read_localization(loadkeys_t)
init_read_script_tmp_files(loadkeys_t)

userdom_use_user_ttys(loadkeys_t)
userdom_list_user_home_content(loadkeys_t)

ifdef(`hide_broken_symptoms',`
	dev_dontaudit_rw_lvm_control(loadkeys_t)
')

optional_policy(`
	keyboardd_read_pipes(loadkeys_t)
')

optional_policy(`
	nscd_dontaudit_search_pid(loadkeys_t)
')