Skip to content

Commit dbacefd

Browse files
committed
Add rhsmcertd interfaces
The following interfaces were added: - rhsmcertd_write_config_files() - rhsmcertd_create_log() - rhsmcertd_create_lib_files()
1 parent 7c45bef commit dbacefd

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

policy/modules/contrib/rhsmcertd.if

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,26 @@ interface(`rhsmcertd_read_config_files',`
5757
read_files_pattern($1, rhsmcertd_config_t, rhsmcertd_config_t)
5858
')
5959

60+
########################################
61+
## <summary>
62+
## Write rhsmcertd's config files.
63+
## </summary>
64+
## <param name="domain">
65+
## <summary>
66+
## Domain allowed access.
67+
## </summary>
68+
## </param>
69+
#
70+
interface(`rhsmcertd_write_config_files',`
71+
gen_require(`
72+
type rhsmcertd_config_t;
73+
')
74+
75+
files_search_var_lib($1)
76+
write_files_pattern($1, rhsmcertd_config_t, rhsmcertd_config_t)
77+
allow $1 rhsmcertd_config_t:file setattr;
78+
')
79+
6080
########################################
6181
## <summary>
6282
## Manage rhsmcertd's config files.
@@ -115,6 +135,25 @@ interface(`rhsmcertd_append_log',`
115135
append_files_pattern($1, rhsmcertd_log_t, rhsmcertd_log_t)
116136
')
117137

138+
########################################
139+
## <summary>
140+
## Allow the specified domain to create rhsmcertd log files.
141+
## </summary>
142+
## <param name="domain">
143+
## <summary>
144+
## Domain allowed access.
145+
## </summary>
146+
## </param>
147+
#
148+
interface(`rhsmcertd_create_log',`
149+
gen_require(`
150+
type rhsmcertd_log_t;
151+
')
152+
153+
logging_search_logs($1)
154+
create_files_pattern($1, rhsmcertd_log_t, rhsmcertd_log_t)
155+
')
156+
118157
########################################
119158
## <summary>
120159
## Manage rhsmcertd log files
@@ -174,6 +213,25 @@ interface(`rhsmcertd_read_lib_files',`
174213
read_files_pattern($1, rhsmcertd_var_lib_t, rhsmcertd_var_lib_t)
175214
')
176215

216+
########################################
217+
## <summary>
218+
## Allow the specified domain to create rhsmcertd lib files.
219+
## </summary>
220+
## <param name="domain">
221+
## <summary>
222+
## Domain allowed access.
223+
## </summary>
224+
## </param>
225+
#
226+
interface(`rhsmcertd_create_lib_files',`
227+
gen_require(`
228+
type rhsmcertd_var_lib_t;
229+
')
230+
231+
files_search_var_lib($1)
232+
create_files_pattern($1, rhsmcertd_var_lib_t, rhsmcertd_var_lib_t)
233+
')
234+
177235
########################################
178236
## <summary>
179237
## Manage rhsmcertd lib files.

0 commit comments

Comments
 (0)