Bug 906959 - SELinux is preventing plugin-config from 'read' accesses on the file /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/ACPI0003:00/power_supply/AC0/online.
Summary: SELinux is preventing plugin-config from 'read' accesses on the file /sys/dev...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c349d2ed8e028dd101b6cc7978f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-02 01:51 UTC by cezar.a.bernardi
Modified: 2013-02-12 05:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-12 05:09:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2013-02-02 01:51 UTC, cezar.a.bernardi
no flags Details
File: hashmarkername (14 bytes, text/plain)
2013-02-02 01:51 UTC, cezar.a.bernardi
no flags Details

Description cezar.a.bernardi 2013-02-02 01:51:14 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.11-5.fc17.x86_64

description:
:SELinux is preventing plugin-config from 'read' accesses on the file /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/ACPI0003:00/power_supply/AC0/online.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If você acredita que o plugin-config deva ser permitido acesso de read em online file  por default.
:Then você precisa reportar este como um erro.
:Você pode gerar um módulo de política local para permitir este acesso.
:Do
:permitir este acesso agora executando:
:# grep plugin-config /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_config_t:
:                              s0-s0:c0.c1023
:Target Context                system_u:object_r:sysfs_t:s0
:Target Objects                /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/ACPI
:                              0003:00/power_supply/AC0/online [ file ]
:Source                        plugin-config
:Source Path                   plugin-config
:Port                          <Desconhecido>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-166.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.11-5.fc17.x86_64 #1 SMP Tue
:                              Jan 8 21:40:51 UTC 2013 x86_64 x86_64
:Alert Count                   1
:First Seen                    2013-01-31 17:16:40 BRST
:Last Seen                     2013-01-31 17:16:40 BRST
:Local ID                      53c671a6-dba0-4dca-9ca5-4352459192c1
:
:Raw Audit Messages
:type=AVC msg=audit(1359659800.714:188): avc:  denied  { read } for  pid=10111 comm="plugin-config" path="/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/ACPI0003:00/power_supply/AC0/online" dev="sysfs" ino=10523 scontext=unconfined_u:unconfined_r:mozilla_plugin_config_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysfs_t:s0 tclass=file
:
:
:Hash: plugin-config,mozilla_plugin_config_t,sysfs_t,file,read
:
:audit2allow
:
:#============= mozilla_plugin_config_t ==============
:allow mozilla_plugin_config_t sysfs_t:file read;
:
:audit2allow -R
:
:#============= mozilla_plugin_config_t ==============
:allow mozilla_plugin_config_t sysfs_t:file read;
:

Comment 1 cezar.a.bernardi 2013-02-02 01:51:18 UTC
Created attachment 691845 [details]
File: type

Comment 2 cezar.a.bernardi 2013-02-02 01:51:20 UTC
Created attachment 691846 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2013-02-04 10:38:20 UTC
Added.

commit f92297aa8f87f2c1acb8ffd1569767afefa689d3
Author: Miroslav Grepl <mgrepl>
Date:   Mon Feb 4 11:37:04 2013 +0100

    Allow mozilla-plugin-config to read power_supply info

Comment 4 Fedora Update System 2013-02-04 22:05:03 UTC
selinux-policy-3.10.0-167.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-167.fc17

Comment 5 Fedora Update System 2013-02-05 17:03:06 UTC
Package selinux-policy-3.10.0-167.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-167.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1971/selinux-policy-3.10.0-167.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-02-12 05:09:35 UTC
selinux-policy-3.10.0-167.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.