Bug 1539180

Summary: Alerts not deleted in SELinux Alert Browser
Product: [Fedora] Fedora Reporter: Pavel Roskin <plroskin>
Component: setroubleshootAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: 27CC: didierg-divers, dwalsh, iamreallynotapokemon, krinkodot22, mgrepl, mike, plautrba, pmoore, pszuster, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: setroubleshoot-3.3.17-1.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-06 17:27:33 UTC Type: Bug
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
Screenshot none

Description Pavel Roskin 2018-01-26 20:08:03 UTC
Description of problem:

When I delete an alert in SELinux Alert Browser, it reappears after reboot.

Version-Release number of selected component (if applicable):
setroubleshoot-3.3.15-1.fc27.x86_64

How reproducible:
Every time

Steps to Reproduce:
1. sudo mv /etc/resolv.conf /etc/resolv.conf.saved
2. sudo cp /etc/resolv.conf.saved /etc/resolv.conf
3. Reboot and login
4. Open SELinux Alert Browser
5. Select "troubleshoot" for every warning and run the suggested solution (restorecon)
6. Delete every warning
7. Reboot and login
8. Open SELinux Alert Browser

Actual results:
The warnings are still there.

Expected results:
There should be no warnings.

Additional info:

Comment 1 Michael Cronenworth 2018-02-05 15:57:20 UTC
Doesn't require a reboot. Just start a new seapplet instance.

Comment 2 Michael Cronenworth 2018-02-05 15:59:09 UTC
@Petr, this is a regression after the switch to GTK3.

Comment 3 Norbert Makula 2018-02-14 12:50:42 UTC
I have this problem too :(
If someone need some logs etc. Pls write down which you need.

Comment 4 Petr Lautrbach 2018-02-16 16:49:59 UTC
I've added save interface to rpc and it's called every time an alert is deleted in browser. Could you please try the following build from my plautrba/setroubleshoot COPR repo?

https://copr.fedorainfracloud.org/coprs/plautrba/setroubleshoot/build/716483/

or use the following commands:

# dnf copr enable plautrba/setroubleshoot

# dnf update setroubleshoot

Comment 5 Norbert Makula 2018-02-16 17:11:47 UTC
Created attachment 1397097 [details]
Screenshot

Don't works

Comment 6 Norbert Makula 2018-02-16 17:12:33 UTC
*work

Comment 7 Norbert Makula 2018-02-16 17:12:56 UTC
Sry for the spam.... Doesn't work

Comment 8 Michael Cronenworth 2018-02-20 22:35:01 UTC
I've tried setroubleshoot-3.3.16-0.fc27.30.x86_64 and it worked for me. Thanks, Petr.

Comment 9 krinkodot22 2018-02-22 02:35:16 UTC
Updating to setroubleshoot-3.3.16-0.2.fc27.x86_64 from the copr repo gives me mixed results. When I delete alerts in the sealert GUI, sometimes they reappear the next time I open sealert. However, other times they stay deleted, even after a system reboot.

Comment 10 Fedora Update System 2018-02-26 20:33:47 UTC
setroubleshoot-3.3.17-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c6be5e935b

Comment 11 Fedora Update System 2018-02-27 18:29:07 UTC
setroubleshoot-3.3.17-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c6be5e935b

Comment 12 krinkodot22 2018-02-28 14:55:12 UTC
The latest update that was pushed to the copr repo seems to have done the trick for me. I'll try the version that's on the testing repo too, unless it's the same version as what's on copr.

Comment 13 Petr Lautrbach 2018-02-28 15:31:00 UTC
It's basically the same code but with a higher release. setroubleshoot-3.3.17-1.fc27 will be soon in stable anyway so you can wait for that.

Comment 14 Fedora Update System 2018-03-06 17:27:33 UTC
setroubleshoot-3.3.17-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.