Bug 825682 - SELinux is preventing /usr/sbin/named from read, write access on the file blkdiamonds.lan.db.jnl.
Summary: SELinux is preventing /usr/sbin/named from read, write access on the file blk...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f8f55e04dc61b9828542efb29bf...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-28 08:24 UTC by flashl
Modified: 2012-07-06 23:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-28 11:56:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description flashl 2012-05-28 08:24:18 UTC
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

description:
: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.
:Do
: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 12:01:53 UTC
Where is blkdiamonds.lan.db.jnl exactly located?

Comment 2 Daniel Walsh 2012-06-26 10:52:03 UTC
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 23:35:58 UTC
Thank Daniel.


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