aboutsummaryrefslogtreecommitdiff
blob: 0c52f6070f858bdd3e328f75f1e940b6b7b9d5ff (plain)
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
58
59
60
61
62
63
64
65
policy_module(kdumpgui, 1.1.0)

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

type kdumpgui_t;
type kdumpgui_exec_t;
dbus_system_domain(kdumpgui_t, kdumpgui_exec_t)

######################################
#
# system-config-kdump local policy
#

allow kdumpgui_t self:capability { net_admin sys_admin sys_rawio };
allow kdumpgui_t self:fifo_file rw_fifo_file_perms;
allow kdumpgui_t self:netlink_kobject_uevent_socket create_socket_perms;

kernel_read_system_state(kdumpgui_t)
kernel_read_network_state(kdumpgui_t)

corecmd_exec_bin(kdumpgui_t)
corecmd_exec_shell(kdumpgui_t)

dev_dontaudit_getattr_all_chr_files(kdumpgui_t)
dev_read_sysfs(kdumpgui_t)

files_manage_boot_files(kdumpgui_t)
files_manage_boot_symlinks(kdumpgui_t)
# Needed for running chkconfig
files_manage_etc_symlinks(kdumpgui_t)
# for blkid.tab
files_manage_etc_runtime_files(kdumpgui_t)
files_etc_filetrans_etc_runtime(kdumpgui_t, file)
files_read_usr_files(kdumpgui_t)

storage_raw_read_fixed_disk(kdumpgui_t)
storage_raw_write_fixed_disk(kdumpgui_t)

auth_use_nsswitch(kdumpgui_t)

logging_send_syslog_msg(kdumpgui_t)

miscfiles_read_localization(kdumpgui_t)

init_dontaudit_read_all_script_files(kdumpgui_t)

optional_policy(`
	consoletype_exec(kdumpgui_t)
')

optional_policy(`
	dev_rw_lvm_control(kdumpgui_t)
')

optional_policy(`
	kdump_manage_config(kdumpgui_t)
	kdump_initrc_domtrans(kdumpgui_t)
')

optional_policy(`
	policykit_dbus_chat(kdumpgui_t)
')