Bug 1622114 - SELinux is preventing sealert from 'getattr' accesses on the chr_file /dev/random.
Summary: SELinux is preventing sealert from 'getattr' accesses on the chr_file /dev/ra...
Keywords:
Status: CLOSED DUPLICATE of bug 1622115
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:930483c67797bb71d9dcf1a9303...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-24 13:27 UTC by Nicolas Mailhot
Modified: 2018-08-27 22:44 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-08-27 22:44:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2018-08-24 13:27:39 UTC
Description of problem:
On clean boot
SELinux is preventing sealert from 'getattr' accesses on the chr_file /dev/random.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

Si vous souhaitez allow authlogin to nsswitch use ldap
Then vous devez en informer SELinux en activant le booléen « authlogin_nsswitch_use_ldap ».

Do
setsebool -P authlogin_nsswitch_use_ldap 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

Si vous pensez que sealert devrait être autorisé à accéder getattr sur random chr_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 "sealert" --raw | audit2allow -M my-sealert
# semodule -X 300 -i my-sealert.pp

Additional Information:
Source Context                system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.
                              c1023
Target Context                system_u:object_r:random_device_t:s0
Target Objects                /dev/random [ chr_file ]
Source                        sealert
Source Path                   sealert
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-32.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.19.0-0.rc0.git10.1.fc30.x86_64
                              #1 SMP Thu Aug 23 14:22:05 UTC 2018 x86_64 x86_64
Alert Count                   2
First Seen                    2018-08-24 15:24:26 CEST
Last Seen                     2018-08-24 15:25:44 CEST
Local ID                      543beefb-2f1c-47c0-85ff-ec69415505f0

Raw Audit Messages
type=AVC msg=audit(1535117144.148:284): avc:  denied  { getattr } for  pid=3135 comm="sealert" path="/dev/random" dev="devtmpfs" ino=44 scontext=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:random_device_t:s0 tclass=chr_file permissive=1


Hash: sealert,setroubleshoot_fixit_t,random_device_t,chr_file,getattr

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.19.0-0.rc0.git10.1.fc30.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2018-08-27 22:44:28 UTC

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


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