Bug 969442 - SELinux is preventing /usr/lib/systemd/systemd-localed from 'getattr' accesses on the file /etc/vconsole.conf.
Summary: SELinux is preventing /usr/lib/systemd/systemd-localed from 'getattr' accesse...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2d58eb65b7478ffb0d136c6b8e7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-31 12:27 UTC by Alexey Derlaft
Modified: 2013-05-31 15:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-31 15:01:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexey Derlaft 2013-05-31 12:27:43 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-localed from 'getattr' accesses on the file /etc/vconsole.conf.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If необходимо исправить метку.
Стандартная метка для /etc/vconsole.conf: locale_t.
Then можно выполнить restorecon.
Do
# /sbin/restorecon -v /etc/vconsole.conf

*****  Plugin catchall (1.49 confidence) suggests  ***************************

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

Additional Information:
Source Context                system_u:system_r:systemd_localed_t:s0
Target Context                system_u:object_r:getty_etc_t:s0
Target Objects                /etc/vconsole.conf [ file ]
Source                        systemd-localed
Source Path                   /usr/lib/systemd/systemd-localed
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           systemd-204-3.fc19.x86_64
Target RPM Packages           systemd-204-3.fc19.x86_64
Policy RPM                    selinux-policy-3.12.1-47.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-300.fc19.x86_64 #1 SMP Fri
                              May 24 22:17:06 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-05-31 16:26:42 MSK
Last Seen                     2013-05-31 16:26:42 MSK
Local ID                      66f9a871-078e-4fca-8f7c-530fc9959664

Raw Audit Messages
type=AVC msg=audit(1370003202.545:482): avc:  denied  { getattr } for  pid=3352 comm="systemd-localed" path="/etc/vconsole.conf" dev="sda4" ino=1452259 scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:object_r:getty_etc_t:s0 tclass=file


type=SYSCALL msg=audit(1370003202.545:482): arch=x86_64 syscall=fstat success=no exit=EACCES a0=4 a1=7fffb9a1f620 a2=7fffb9a1f620 a3=0 items=0 ppid=1 pid=3352 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=systemd-localed exe=/usr/lib/systemd/systemd-localed subj=system_u:system_r:systemd_localed_t:s0 key=(null)

Hash: systemd-localed,systemd_localed_t,getty_etc_t,file,getattr

Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-300.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-05-31 15:01:22 UTC
alert tells you what to do.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If необходимо исправить метку.
Стандартная метка для /etc/vconsole.conf: locale_t.
Then можно выполнить restorecon.
Do
# /sbin/restorecon -v /etc/vconsole.conf

Not sure how you got this file to be labeled getty_etc_t.


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