python/sepolicy/sepolicy/gui: Reflect sepolicy changes into gui
sepolicy.get_init_entrypoint() now returns list of Type objects instead of single string, which caused sepolicy gui to crash. Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
This commit is contained in:
parent
4791a99d67
commit
31fcd66d39
|
@ -512,8 +512,8 @@ class SELinuxGui():
|
||||||
self.progress_bar.set_pulse_step(self.percentage)
|
self.progress_bar.set_pulse_step(self.percentage)
|
||||||
self.idle_func()
|
self.idle_func()
|
||||||
|
|
||||||
entrypoint = sepolicy.get_init_entrypoint(domain)
|
entrypoints = [str(x) for x in sepolicy.get_init_entrypoint(domain)]
|
||||||
if entrypoint:
|
for entrypoint in entrypoints:
|
||||||
path = sepolicy.find_entrypoint_path(entrypoint)
|
path = sepolicy.find_entrypoint_path(entrypoint)
|
||||||
if path:
|
if path:
|
||||||
self.combo_box_initialize(path, None)
|
self.combo_box_initialize(path, None)
|
||||||
|
|
Loading…
Reference in New Issue