Bug 969442 - SELinux is preventing /usr/lib/systemd/systemd-localed from 'getattr' accesses on the file /etc/vconsole.conf.
SELinux is preventing /usr/lib/systemd/systemd-localed from 'getattr' accesse...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-05-31 08:27 EDT by Alexey Derlaft
Modified: 2013-05-31 11:01 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-05-31 11:01:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alexey Derlaft 2013-05-31 08:27:43 EDT
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.
# /sbin/restorecon -v /etc/vconsole.conf

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

If вы считаете, что systemd-localed следует разрешить доступ getattr к vconsole.conf file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
чтобы разрешить доступ, выполните:
# 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 11:01:22 EDT
alert tells you what to do.

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

If необходимо исправить метку.
Стандартная метка для /etc/vconsole.conf: locale_t.
Then можно выполнить restorecon.
# /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.