@@ -57,6 +57,26 @@ interface(`rhsmcertd_read_config_files',`
57
57
read_files_pattern($1, rhsmcertd_config_t, rhsmcertd_config_t)
58
58
')
59
59
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
+
60
80
########################################
61
81
## <summary>
62
82
## Manage rhsmcertd's config files.
@@ -115,6 +135,25 @@ interface(`rhsmcertd_append_log',`
115
135
append_files_pattern($1, rhsmcertd_log_t, rhsmcertd_log_t)
116
136
')
117
137
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
+
118
157
########################################
119
158
## <summary>
120
159
## Manage rhsmcertd log files
@@ -174,6 +213,25 @@ interface(`rhsmcertd_read_lib_files',`
174
213
read_files_pattern($1, rhsmcertd_var_lib_t, rhsmcertd_var_lib_t)
175
214
')
176
215
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
+
177
235
########################################
178
236
## <summary>
179
237
## Manage rhsmcertd lib files.
0 commit comments