Bug 825682 - SELinux is preventing /usr/sbin/named from read, write access on the file blkdiamonds.lan.db.jnl.
SELinux is preventing /usr/sbin/named from read, write access on the file blk...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-05-28 04:24 EDT by flashl
Modified: 2012-07-06 19:35 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-28 07:56:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description flashl 2012-05-28 04:24:18 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.0-1.fc17.x86_64
time:           Mon 28 May 2012 03:22:43 AM CDT

:SELinux is preventing /usr/sbin/named from read, write access on the file blkdiamonds.lan.db.jnl.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that named should be allowed read write access on the blkdiamonds.lan.db.jnl file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:allow this access for now by executing:
:# grep named /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:Additional Information:
:Source Context                system_u:system_r:named_t:s0
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                blkdiamonds.lan.db.jnl [ file ]
:Source                        named
:Source Path                   /usr/sbin/named
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           bind-9.9.0-4.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-121.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.3.0-1.fc17.x86_64 #1 SMP Mon Mar 19 03:03:39 UTC
:                              2012 x86_64 x86_64
:Alert Count                   4
:First Seen                    Mon 28 May 2012 12:37:35 AM CDT
:Last Seen                     Mon 28 May 2012 01:36:19 AM CDT
:Local ID                      c2935d86-bfc2-48ba-84dc-acf15ecb05bf
:Raw Audit Messages
:type=AVC msg=audit(1338186979.254:1065): avc:  denied  { read write } for  pid=11246 comm="named" name="blkdiamonds.lan.db.jnl" dev="dm-0" ino=918466 scontext=system_u:system_r:named_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file
:type=SYSCALL msg=audit(1338186979.254:1065): arch=x86_64 syscall=open success=no exit=EACCES a0=7f537a2ce5f8 a1=2 a2=1b6 a3=238 items=0 ppid=1 pid=11246 auid=4294967295 uid=25 gid=25 euid=25 suid=25 fsuid=25 egid=25 sgid=25 fsgid=25 tty=(none) ses=4294967295 comm=named exe=/usr/sbin/named subj=system_u:system_r:named_t:s0 key=(null)
:Hash: named,named_t,user_home_t,file,read,write
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Miroslav Grepl 2012-06-22 08:01:53 EDT
Where is blkdiamonds.lan.db.jnl exactly located?
Comment 2 Daniel Walsh 2012-06-26 06:52:03 EDT
This looks like you created a file in the homedir and then mv'd it to a system directory.

restorecon -R -v blkdiamonds.*
Comment 3 flashl 2012-07-06 19:35:58 EDT
Thank Daniel.

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