Bug 1204391

Summary: SELinux is preventing abrt-watch-log from 'search' accesses on the directory .config.
Product: [Fedora] Fedora Reporter: 123 <iorlov89>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:568efdb357edb110d55a32304737fa71664ad9143dccaa7b200e5ded8b5b3ed3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-23 12:13:31 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 123 2015-03-21 15:26:39 UTC
Description of problem:
I started problem reporter.
SELinux is preventing abrt-watch-log from 'search' accesses on the directory .config.

*****  Plugin catchall (100. confidence) suggests   **************************

If вы считаете, что abrt-watch-log следует разрешить доступ search к .config directory по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep abrt-watch-log /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_watch_log_t:s0
Target Context                unconfined_u:object_r:config_home_t:s0
Target Objects                .config [ dir ]
Source                        abrt-watch-log
Source Path                   abrt-watch-log
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-118.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.0-0.rc4.git0.1.fc22.x86_64 #1
                              SMP Mon Mar 16 14:36:23 UTC 2015 x86_64 x86_64
Alert Count                   2
First Seen                    2015-03-21 16:26:02 MSK
Last Seen                     2015-03-21 18:22:54 MSK
Local ID                      7859e430-e3fc-40c6-bf6a-e148402fb8e7

Raw Audit Messages
type=AVC msg=audit(1426951374.56:110): avc:  denied  { search } for  pid=698 comm="abrt-watch-log" name=".config" dev="sda5" ino=951572 scontext=system_u:system_r:abrt_watch_log_t:s0 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=dir permissive=0


Hash: abrt-watch-log,abrt_watch_log_t,config_home_t,dir,search

Version-Release number of selected component:
selinux-policy-3.13.1-118.fc22.noarch

Additional info:
reporter:       libreport-2.5.0
hashmarkername: setroubleshoot
kernel:         4.0.0-0.rc4.git0.1.fc22.x86_64
type:           libreport

Comment 1 Daniel Walsh 2015-03-22 10:45:43 UTC
Probably should dontaudit.  No reason for this tool to be looking in homedirs. Probably some library causing this.

Comment 2 123 2015-03-22 13:20:00 UTC
It was ok I began to have the problem after update.

Comment 3 123 2015-03-23 07:00:33 UTC
Description of problem:
I started powertop without sudo. With sudo powertop was started.

Version-Release number of selected component:
selinux-policy-3.13.1-118.fc22.noarch

Additional info:
reporter:       libreport-2.5.0
hashmarkername: setroubleshoot
kernel:         4.0.0-0.rc4.git0.1.fc22.x86_64
type:           libreport

Comment 4 Lukas Vrabec 2015-03-23 12:13:31 UTC

*** This bug has been marked as a duplicate of bug 1199658 ***