Bug 1596929 - SELinux is preventing (uetoothd) from 'mounton' accesses on the fichier /run/systemd/unit-root/proc/kallsyms.
Summary: SELinux is preventing (uetoothd) from 'mounton' accesses on the fichier /run/...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4536de3b437b1560bc2318e0a46...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-30 08:58 UTC by Nicolas Mailhot
Modified: 2018-09-12 02:59 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.14.2-34.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-12 02:59:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2018-06-30 08:58:28 UTC
Description of problem:
On an up-to date rawhide system, after full relabel and another reboot just to be sure
SELinux is preventing (uetoothd) from 'mounton' accesses on the fichier /run/systemd/unit-root/proc/kallsyms.

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

Si vous souhaitez corriger l'étiquette. 
L'étiquette par défaut de /run/systemd/unit-root/proc/kallsyms devrait être init_var_run_t.
Then vous pouvez lancer restorecon. La tentative d’accès pourrait avoir été stoppée due à des permissions insuffisantes d’accès au dossier parent, auquel cas essayez de changer la commande suivante en conséquence.
Do
# /sbin/restorecon -v /run/systemd/unit-root/proc/kallsyms

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

Si vous pensez que (uetoothd) devrait être autorisé à accéder mounton sur kallsyms file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# ausearch -c "(uetoothd)" --raw | audit2allow -M my-uetoothd
# semodule -X 300 -i my-uetoothd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:system_map_t:s0
Target Objects                /run/systemd/unit-root/proc/kallsyms [ file ]
Source                        (uetoothd)
Source Path                   (uetoothd)
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-26.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.18.0-0.rc2.git3.1.fc29.x86_64 #1
                              SMP Thu Jun 28 15:41:46 UTC 2018 x86_64 x86_64
Alert Count                   7
First Seen                    2018-06-30 10:54:26 CEST
Last Seen                     2018-06-30 10:55:27 CEST
Local ID                      c296e199-492f-4c78-b3cb-757aef4f5dc4

Raw Audit Messages
type=AVC msg=audit(1530348927.38:279): avc:  denied  { mounton } for  pid=2441 comm="(fprintd)" path="/run/systemd/unit-root/proc/kallsyms" dev="proc" ino=4026532084 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:system_map_t:s0 tclass=file permissive=1


Hash: (uetoothd),init_t,system_map_t,file,mounton

Version-Release number of selected component:
selinux-policy-3.14.2-26.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.18.0-0.rc2.git3.1.fc29.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2018-07-02 19:59:12 UTC
*****  Plugin restorecon (99.5 confidence) suggests   ************************

Si vous souhaitez corriger l'étiquette. 
L'étiquette par défaut de /run/systemd/unit-root/proc/kallsyms devrait être init_var_run_t.
Then vous pouvez lancer restorecon. La tentative d’accès pourrait avoir été stoppée due à des permissions insuffisantes d’accès au dossier parent, auquel cas essayez de changer la commande suivante en conséquence.
Do
# /sbin/restorecon -v /run/systemd/unit-root/proc/kallsyms

Comment 2 Mikhail 2018-07-22 10:07:26 UTC
(In reply to Lukas Vrabec from comment #1)
> *****  Plugin restorecon (99.5 confidence) suggests  
> ************************
> 
> Si vous souhaitez corriger l'étiquette. 
> L'étiquette par défaut de /run/systemd/unit-root/proc/kallsyms devrait être
> init_var_run_t.
> Then vous pouvez lancer restorecon. La tentative d’accès pourrait avoir été
> stoppée due à des permissions insuffisantes d’accès au dossier parent,
> auquel cas essayez de changer la commande suivante en conséquence.
> Do
> # /sbin/restorecon -v /run/systemd/unit-root/proc/kallsyms

# /sbin/restorecon -v /run/systemd/unit-root/proc/kallsyms
/sbin/restorecon: SELinux: Could not get canonical path for /run/systemd/unit-root/proc/kallsyms restorecon: No such file or directory.

Comment 3 Mikhail 2018-07-23 12:09:51 UTC
# ls -laZ /run/systemd/unit-root
total 0
drwx------.  2 root root system_u:object_r:init_var_run_t:s0  40 Jul 23 13:48 .
drwxr-xr-x. 18 root root system_u:object_r:init_var_run_t:s0 420 Jul 23 13:49 ..

Comment 4 Jan Kurik 2018-08-14 11:17:39 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 5 Fedora Update System 2018-09-11 12:52:49 UTC
selinux-policy-3.14.2-34.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-db240a1726

Comment 6 Fedora Update System 2018-09-12 02:59:16 UTC
selinux-policy-3.14.2-34.fc29 has been pushed to the Fedora 29 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.