Bug 1944033

Summary: Recommendation generated by seapplet need better formats
Product: [Fedora] Fedora Reporter: Liu Sen <liusen>
Component: setroubleshootAssignee: Vit Mojzis <vmojzis>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: dwalsh, grepl.miroslav, mmalik, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: setroubleshoot-3.3.26-1.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-24 20:12:38 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:

Description Liu Sen 2021-03-29 05:59:12 UTC
Description of problem:

Seapplet can give some commands to help solve SELinux related problems. Since setroubleshoot is developed by Redhat and I dont have a pagure.io account, I report a bug here.

Version-Release number of selected component (if applicable):

setroubleshoot-3.3.25-1.fc34(and older version)


Actual results:

#ausearch -c'systemd-sleep'--raw | audit2allow -M my-systemdsleep#semodule -X 300 -i my-systemdsleep.pp


Expected results:

#ausearch -c 'systemd-sleep'--raw | audit2allow -M my-systemdsleep#semodule -X 300 -i my-systemdsleep.pp

or

#ausearch -c 'systemd-sleep'--raw | audit2allow -M my-systemdsleep
#semodule -X 300 -i my-systemdsleep.pp

Additional info:

Comment 1 Petr Lautrbach 2021-03-29 09:45:21 UTC
https://pagure.io/setroubleshoot/blob/main/f/plugins/src/catchall.py#_58
https://pagure.io/setroubleshoot/blob/main/f/plugins/src/leaks.py#_44

Both use the correct formatting so I guess it's a problem in localization. Do you use other than en_US locales?

Comment 2 Liu Sen 2021-03-29 10:11:19 UTC
(In reply to Petr Lautrbach from comment #1)
> https://pagure.io/setroubleshoot/blob/main/f/plugins/src/catchall.py#_58
> https://pagure.io/setroubleshoot/blob/main/f/plugins/src/leaks.py#_44
> 
> Both use the correct formatting so I guess it's a problem in localization.
> Do you use other than en_US locales?

Sure

fedora@localhost ~> env | grep LANG
LANGUAGE=zh_CN:en_US
LANG=zh_CN.UTF-8
fedora@localhost ~> localectl status
   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: us

Comment 3 Fedora Update System 2021-04-15 10:13:43 UTC
FEDORA-2021-d5cf1db1a5 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d5cf1db1a5

Comment 4 Fedora Update System 2021-04-15 19:29:16 UTC
FEDORA-2021-d5cf1db1a5 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d5cf1db1a5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d5cf1db1a5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-04-24 20:12:38 UTC
FEDORA-2021-d5cf1db1a5 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.