@@ -63,8 +63,8 @@ class TestSelinux(testlib.MachineCase):
63
63
64
64
# Do some local modifications
65
65
m .execute ("semanage fcontext --add -t samba_share_t /var/tmp/" )
66
- m .execute ("semanage boolean --modify --on zebra_write_config " )
67
- self .allow_journal_messages ("audit: type=1405 .* bool=zebra_write_config val=1 old_val=0.*" )
66
+ m .execute ("semanage boolean --modify --on daemons_dump_core " )
67
+ self .allow_journal_messages ("audit: type=1405 .* bool=daemons_dump_core val=1 old_val=0.*" )
68
68
self .allow_journal_messages (".*couldn't .* /org/fedoraproject/Setroubleshootd: GDBus.Error:org.freedesktop.DBus.Error.NoReply:.*" )
69
69
70
70
self .login_and_go ("/selinux" )
@@ -91,7 +91,7 @@ class TestSelinux(testlib.MachineCase):
91
91
b .wait_js_func ("ph_count_check" , "#selinux-alerts tbody" , num_alerts - 1 )
92
92
93
93
# wait for Modifications table to initialize
94
- b .wait_text_matches (".modifications-table" , "Allow zebra.*write.*config " )
94
+ b .wait_text_matches (".modifications-table" , "Allow.*daemons.*core " )
95
95
96
96
# httpd_read_user_content should be off by default
97
97
self .assertIn ("-> off" , m .execute ("getsebool httpd_read_user_content" ))
@@ -209,15 +209,15 @@ class TestSelinux(testlib.MachineCase):
209
209
210
210
b .grant_permissions ("clipboard-read" , "clipboard-write" )
211
211
212
- b .wait_visible (".pf-v5-c-data-list__cell:contains(Allow zebra )" )
212
+ b .wait_visible (".pf-v5-c-data-list__cell:contains(daemons to )" )
213
213
b .wait_visible (".pf-v5-c-data-list__cell:contains(fcontext -a -f a -t samba_share_t -r 's0' '/var/tmp/')" )
214
214
b .click ("button:contains('View automation script')" )
215
215
ansible_script_sel = ".automation-script-modal .pf-v5-c-modal-box__body section:nth-child(2) textarea"
216
216
shell_script_sel = ".automation-script-modal .pf-v5-c-modal-box__body section:nth-child(3) textarea"
217
217
b .click ("button:contains('Shell')" )
218
218
b .wait_in_text (shell_script_sel , "boolean -D" )
219
219
b .wait_in_text (shell_script_sel , "fcontext -D" )
220
- b .wait_in_text (shell_script_sel , "boolean -m -1 zebra_write_config " )
220
+ b .wait_in_text (shell_script_sel , "boolean -m -1 daemons_dump_core " )
221
221
b .wait_in_text (shell_script_sel , "fcontext -a -f a -t samba_share_t -r 's0' '/var/tmp/'" )
222
222
223
223
# Check ansible
@@ -233,7 +233,7 @@ class TestSelinux(testlib.MachineCase):
233
233
return script
234
234
235
235
b .click ("button:contains('Ansible')" )
236
- b .wait_text_matches (ansible_script_sel , "Allow zebra.*write.*config " )
236
+ b .wait_text_matches (ansible_script_sel , "Allow.*daemons.*core " )
237
237
238
238
ansible_m = self .machines ["ansible_machine" ]
239
239
ansible_m .execute ("semanage module -D" )
@@ -247,11 +247,11 @@ class TestSelinux(testlib.MachineCase):
247
247
self .assertEqual (local , se_after )
248
248
249
249
# Check that ansible is idempotent
250
- m .execute ("semanage boolean --modify --off zebra_write_config " )
250
+ m .execute ("semanage boolean --modify --off daemons_dump_core " )
251
251
b .reload ()
252
252
b .enter_page ("/selinux" )
253
253
with b .wait_timeout (30 ):
254
- b .wait_visible (".pf-v5-c-data-list__cell:contains(Disallow zebra) " )
254
+ b .wait_text_matches (".pf-v5-c-data-list__cell:contains(daemons)" , "Disallow.*daemons.*core " )
255
255
b .click ("button:contains('View automation script')" )
256
256
ansible_m .write ("roles/selinux/tasks/main.yml" , b .text (ansible_script_sel ))
257
257
se_before = se_after
@@ -274,7 +274,7 @@ class TestSelinux(testlib.MachineCase):
274
274
b .click ('.contextMenu li:nth-child(2) button' )
275
275
b .wait_in_text (".xterm-accessibility-tree" , "semanage import <<EOF" )
276
276
b .wait_in_text (".xterm-accessibility-tree" , "boolean -D" )
277
- b .wait_in_text (".xterm-accessibility-tree" , "boolean -m -0 zebra_write_config " )
277
+ b .wait_in_text (".xterm-accessibility-tree" , "boolean -m -0 daemons_dump_core " )
278
278
b .wait_in_text (".xterm-accessibility-tree" , "fcontext -a -f a -t samba_share_t -r 's0' '/var/tmp/'" )
279
279
280
280
m .execute ("semanage boolean -D; semanage fcontext -D; semanage module -D" )
0 commit comments