fedora-selinux / setroubleshoot

Abandoned, use https://gitlab.com/setroubleshoot
https://gitlab.com/setroubleshoot
9 stars 12 forks source link

dbus: new alert notification always "yellow" #12

Closed dperpeet closed 8 years ago

dperpeet commented 8 years ago

I think this is currently hardcoded in setroubleshoot/server.py#L116 Besides making this info available in the details as well, I think this should be fixed to reflect the level of the alert.

bachradsusi commented 8 years ago

yellow level is considered to be default however the code doesn't really look right. I'll prepare a fix for it. Thanks for the report.

bachradsusi commented 8 years ago

How to generate a green alert:

# chcon -t admin_home_t /etc/ssh/ssh_host_ecdsa_key
# systemctl restart sshd

You need to restore the label back when you are finished:

# restorecon -R -v /etc/ssh
bachradsusi commented 8 years ago

setroubleshoot-3.3.5-0.1 builds with the fix will be available for f23, f24 and rawhide in https://copr.fedorainfracloud.org/coprs/plautrba/setroubleshoot/ soon

mgrepl commented 8 years ago

It works as expected. I am able to see

string "green"

Great.

Looking forward to see it in Cockpit.

bachradsusi commented 8 years ago

Fixed by https://github.com/fedora-selinux/setroubleshoot/commit/5f5dc8f846fd428bdd20d4b09d2bfaecf6b76c64