9458389 root user doesn't need to use SetroubleshootPrivileged API

Authored and Committed by plautrba 4 years ago
    root user doesn't need to use SetroubleshootPrivileged API
    
    Fixes:
    $ sudo sealert -a ./short.log 2>&1 | tee /tmp/tmp.956wzqmMcR, with 15 seconds timeout
    ERROR:dbus.proxies:Introspect error on :1.38:/org/fedoraproject/SetroubleshootPrivileged/object: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Sender is not authorized to send message
    Traceback (most recent call last):
      File "/usr/lib/python3.7/site-packages/setroubleshoot/util.py", line 494, in get_rpm_nvr_by_scontext
        dbus_interface = "org.fedoraproject.SetroubleshootPrivileged"))
      File "/usr/lib64/python3.7/site-packages/dbus/proxies.py", line 70, in __call__
        return self._proxy_method(*args, **keywords)
      File "/usr/lib64/python3.7/site-packages/dbus/proxies.py", line 145, in __call__
        **keywords)
      File "/usr/lib64/python3.7/site-packages/dbus/connection.py", line 651, in call_blocking
        message, timeout)
    dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Sender is not authorized to send message