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 : :
Where is blkdiamonds.lan.db.jnl exactly located?
This looks like you created a file in the homedir and then mv'd it to a system directory. restorecon -R -v blkdiamonds.*
Thank Daniel.