Bug 1176711
Summary: | SELinux is preventing gpg-agent from 'create' accesses on the file .gpg-agent-info. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Cesar Eduardo Barros <cesarb> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, rdieter |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:816453f390c4abe572c99b3efc22479adee68fb4ad1c972e82676d1baa31af7f | ||
Fixed In Version: | selinux-policy-3.13.1-105.fc21 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-01-30 23:55:03 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Cesar Eduardo Barros
2014-12-22 22:30:40 UTC
***** Plugin catchall_boolean (89.3 confidence) suggests ****************** If você deseja allow gpg to agent env file Then você deve informar o SELinux sobre isso habilitando o booleano 'gpg_agent_env_file'. Você pode ler a man page 'None' para mais detalhes. Do setsebool -P gpg_agent_env_file 1 (In reply to Daniel Walsh from comment #1) > ***** Plugin catchall_boolean (89.3 confidence) suggests > ****************** > > If você deseja allow gpg to agent env file > Then você deve informar o SELinux sobre isso habilitando o booleano > 'gpg_agent_env_file'. > Você pode ler a man page 'None' para mais detalhes. > Do > setsebool -P gpg_agent_env_file 1 I didn't do anything out of the ordinary to get this setroubleshoot report; I just logged into a KDE session for a user_u user. IMHO, logging in as a user_u user shouldn't trigger any setroubleshoot warnings in the default configuration. I took a look at https://github.com/TresysTechnology/refpolicy-contrib/blob/master/gpg.te, and this boolean seems to allow full access to the user home directory. However, looking at an unconfined_u user in the same machine, gpg-agent merely wants to create /run/user/<pid>/.gpg-agent-info; the boolean has a much wider effect than would be necessary. I believe creating /run/user/<pid>/.gpg-agent-info by gpg-agent could be allowed by default, while the boolean could be left for when the user wants to create that file anywhere else. If there's a good reason why creating /run/user/<pid>/.gpg-agent-info by gpg-agent as user_u should be forbidden by default, it at least should be silent. Yes I agree this should be allowed by default. commit 6e1ea4e6bcc1156d8ae943d6648ca11a5e455541 Author: Lukas Vrabec <lvrabec> Date: Thu Jan 15 15:28:10 2015 +0100 Remove boolean gpg_agent_env_file selinux-policy-3.13.1-105.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-105.fc21 Package selinux-policy-3.13.1-105.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-105.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-1337/selinux-policy-3.13.1-105.fc21 then log in and leave karma (feedback). selinux-policy-3.13.1-105.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |