aboutsummaryrefslogtreecommitdiff
blob: 5a414e08bb97f6818d6f3617fd2c5675d794aecb (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
policy_module(mandb, 1.0.3)

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

attribute_role mandb_roles;
roleattribute system_r mandb_roles;

type mandb_t;
type mandb_exec_t;
application_domain(mandb_t, mandb_exec_t)
role mandb_roles types mandb_t;

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

allow mandb_t self:process signal;
allow mandb_t self:fifo_file rw_fifo_file_perms;
allow mandb_t self:unix_stream_socket create_stream_socket_perms;

kernel_read_system_state(mandb_t)

corecmd_exec_bin(mandb_t)

domain_use_interactive_fds(mandb_t)

files_read_etc_files(mandb_t)

miscfiles_manage_man_cache(mandb_t)

optional_policy(`
	cron_system_entry(mandb_t, mandb_exec_t)
')