Bug 2178679

Summary: [abrt] policycoreutils-devel: on_show_modified_only(): gui.py:1874:on_show_modified_only:KeyError: 'user'
Product: [Fedora] Fedora Reporter: Flo <augenauf>
Component: policycoreutilsAssignee: Petr Lautrbach <plautrba>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: dwalsh, lvrabec, mmalik, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/05b77453beb0a83b9883d22492b45690d867dee0
Whiteboard: abrt_hash:522d4d975a410603f620db124d7625d7ca78f4b7;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Flo 2023-03-15 14:43:40 UTC
Description of problem:
?

Version-Release number of selected component:
policycoreutils-devel-3.4-6.fc37

Additional info:
reporter:       libreport-2.17.4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-614dfe17-891c-4e3d-8056-098c7f6b05aa.scope
cmdline:        /usr/bin/python3 -Es /usr/bin/sepolicy gui
crash_function: on_show_modified_only
exception_type: KeyError
executable:     /usr/bin/sepolicy
interpreter:    python3-3.11.2-1.fc37.x86_64
kernel:         6.2.2-300.fc37.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
gui.py:1874:on_show_modified_only:KeyError: 'user'

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/sepolicy/gui.py", line 1874, in on_show_modified_only
    if row[0] in self.cust_dict["user"]:
                 ~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'user'

Local variables in innermost frame:
self: <sepolicy.gui.SELinuxGui object at 0x7f3a94f5dcd0>
checkbutton: <Gtk.CheckButton object at 0x7f3a8c508a40 (GtkCheckButton at 0x55b648ae1390)>
dup_row: <function SELinuxGui.on_show_modified_only.<locals>.dup_row at 0x7f3a8c414c20>
append_list: []
row: <gi.overrides.Gtk.TreeModelRow object at 0x7f3a94988f50>
length: 5

Comment 1 Flo 2023-03-15 14:43:43 UTC
Created attachment 1951013 [details]
File: backtrace

Comment 2 Flo 2023-03-15 14:43:44 UTC
Created attachment 1951014 [details]
File: cpuinfo

Comment 3 Flo 2023-03-15 14:43:46 UTC
Created attachment 1951015 [details]
File: environ

Comment 4 Flo 2023-03-15 14:43:47 UTC
Created attachment 1951016 [details]
File: mountinfo

Comment 5 Flo 2023-03-15 14:43:49 UTC
Created attachment 1951017 [details]
File: namespaces

Comment 6 Flo 2023-03-15 14:43:50 UTC
Created attachment 1951018 [details]
File: open_fds