Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1443725 - SELinux is preventing systemd-localed from 'write' accesses on the file /etc/.#vconsole.conff67jvQ.
Summary: SELinux is preventing systemd-localed from 'write' accesses on the file /etc/...
Keywords:
Status: CLOSED DUPLICATE of bug 1443723
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 26
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:956dfe0b9ac55c89dd782418968...
Depends On:
Blocks: F26FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2017-04-19 20:30 UTC by Giulio 'juliuxpigface'
Modified: 2017-05-17 10:14 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-17 10:14:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Giulio 'juliuxpigface' 2017-04-19 20:30:16 UTC
Description of problem:
Found this while using a live of Fedora 26 Workstation (20160416 compose), during the installation of the system on a qemu/kvm guest.
SELinux is preventing systemd-localed from 'write' accesses on the file /etc/.#vconsole.conff67jvQ.

*****  Plugin catchall_labels (83.8 confidence) suggests   *******************

If you want to allow systemd-localed to have write access on the .#vconsole.conff67jvQ file
Then you need to change the label on /etc/.#vconsole.conff67jvQ
Do
# semanage fcontext -a -t FILE_TYPE '/etc/.#vconsole.conff67jvQ'
where FILE_TYPE is one of the following: afs_cache_t, initrc_tmp_t, locale_t, puppet_tmp_t, user_cron_spool_t, xserver_etc_t.
Then execute:
restorecon -v '/etc/.#vconsole.conff67jvQ'


*****  Plugin catchall (17.1 confidence) suggests   **************************

If you believe that systemd-localed should be allowed write access on the .#vconsole.conff67jvQ file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'systemd-localed' --raw | audit2allow -M my-systemdlocaled
# semodule -X 300 -i my-systemdlocaled.pp

Additional Information:
Source Context                system_u:system_r:systemd_localed_t:s0
Target Context                system_u:object_r:etc_t:s0
Target Objects                /etc/.#vconsole.conff67jvQ [ file ]
Source                        systemd-localed
Source Path                   systemd-localed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-249.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.11.0-0.rc6.git0.1.fc26.x86_64 #1
                              SMP Mon Apr 10 19:45:50 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-04-19 16:21:46 EDT
Last Seen                     2017-04-19 16:21:46 EDT
Local ID                      010d9ffc-72bd-4db1-b6e2-4a72ae9badc7

Raw Audit Messages
type=AVC msg=audit(1492633306.641:273): avc:  denied  { write } for  pid=18013 comm="systemd-localed" path="/etc/.#vconsole.conff67jvQ" dev="dm-0" ino=294702 scontext=system_u:system_r:systemd_localed_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=1


Hash: systemd-localed,systemd_localed_t,etc_t,file,write

Version-Release number of selected component:
selinux-policy-3.13.1-249.fc26.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.0-0.rc6.git0.1.fc26.x86_64
type:           libreport

Comment 1 Giulio 'juliuxpigface' 2017-04-27 17:41:42 UTC
Proposing as a blocker for Fedora 26 Final.

The notification of SEAlert popped up (together with other 2/3 AVCs) after reaching the 100% of the installation of Fedora 26 Workstation.

This seems a violation of the "2.5.4 SELinux and crash notifications" criterion

"There must be no SELinux denial notifications or crash notifications on boot of or during installation from a release-blocking live image, or at first login after a default install of a release-blocking desktop."

https://fedoraproject.org/wiki/Fedora_26_Final_Release_Criteria#SELinux_and_crash_notifications

Comment 2 Geoffrey Marr 2017-05-01 18:34:41 UTC
Discussed during the 2017-05-01 blocker review meeting: [1]

The decision to classify this bug as an AcceptedBlocker was made as it violates the following blocker criteria:

"There must be no SELinux denial notifications or crash notifications on boot of or during installation from a release-blocking live image, or at first login after a default install of a release-blocking desktop."

[1] https://meetbot.fedoraproject.org/fedora-blocker-review/2017-05-01/f26-blocker-review.2017-05-01-16.02.txt

Comment 3 Lukas Vrabec 2017-05-17 10:14:43 UTC

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


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