Bug 1471540 - SELinux is preventing auditd from search access on the directory root
SELinux is preventing auditd from search access on the directory root
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
26
Unspecified Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-16 15:19 EDT by Andrew Toskin
Modified: 2017-07-16 15:20 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrew Toskin 2017-07-16 15:19:19 EDT
After making a fresh installation of Fedora 26 Workstation x86_64, I started to restore local file backups, including my entire home directory, virtual machines from /var/lib/libvirt/, /root/.bashrc, and a few things in /etc/, using rsync. During this operation, I hit *a lot* of SE Linux alerts, including this one, plus others that have already recently been reported.


SELinux is preventing auditd from search access on the directory root.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that auditd should be allowed search access on the root directory 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 'auditd' --raw | audit2allow -M my-auditd
# semodule -X 300 -i my-auditd.pp

Additional Information:
Source Context                system_u:system_r:auditd_t:s0
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                root [ dir ]
Source                        auditd
Source Path                   auditd
Port                          <Unknown>
Host                          jean.localdomain
Source RPM Packages           
Target RPM Packages           filesystem-3.2-40.fc26.x86_64
Policy RPM                    selinux-policy-3.13.1-259.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     jean.localdomain
Platform                      Linux jean.localdomain 4.11.8-300.fc26.x86_64 #1
                              SMP Thu Jun 29 20:09:48 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-07-16 00:53:30 PDT
Last Seen                     2017-07-16 00:53:30 PDT
Local ID                      a8d8469e-3f3a-4b9c-bb7a-07e05f6e665d

Raw Audit Messages
type=AVC msg=audit(1500191610.923:4537): avc:  denied  { search } for  pid=904 comm="auditd" name="root" dev="dm-0" ino=256 scontext=system_u:system_r:auditd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir permissive=0


Hash: auditd,auditd_t,user_home_t,dir,search
Comment 1 Andrew Toskin 2017-07-16 15:20:54 EDT
I'm not sure which "root" directory it's talking about -- / or /root/ or something else?

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