Bug 1471540 - SELinux is preventing auditd from search access on the directory root
Summary: SELinux is preventing auditd from search access on the directory root
Keywords:
Status: CLOSED DUPLICATE of bug 1471544
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 26
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-16 19:19 UTC by Audrey Yeena Toskin
Modified: 2018-02-27 02:08 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-27 02:08:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Audrey Yeena Toskin 2017-07-16 19:19:19 UTC
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 Audrey Yeena Toskin 2017-07-16 19:20:54 UTC
I'm not sure which "root" directory it's talking about -- / or /root/ or something else?

Comment 2 Audrey Yeena Toskin 2018-02-27 02:08:43 UTC

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


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