LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2009, 12:47 AM   #1
CZTY
Member
 
Registered: May 2009
Distribution: fedora 10
Posts: 34

Rep: Reputation: 16
SELinux is preventing certwatch (certwatch_t) "write" to ./cache


when I try to play a song or video use the totem or rhythmbox,selinux prevent it I don't konw what it means,I can use mplayer to play videos but I cann't use the totem,I want to seek help for solving the problem,can you help me? thanks.

code:
Actual results:

SELinux is preventing certwatch (certwatch_t) "write" to ./cache (var_t).

Detailed Description:


SELinux denied access requested by certwatch. It is not expected that this
access is required by certwatch and this access may signal an intrusion attempt.
It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:


Sometimes labeling problems can cause SELinux denials. You could try to restore
the default system file context for ./cache,

restorecon -v './cache'

If this does not work, there is currently no automatic way to allow this access.
Instead, you can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinu...fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:


Source Context system_u:system_r:certwatch_t:s0
Target Context system_ubject_r:var_t:s0
Target Objects ./cache [ dir ]
Source certwatch
Source Path /usr/bin/certwatch
Port <Unknown>
Host localhost.localdomain
Source RPM Packages crypto-utils-2.4.1-2
Target RPM Packages
Policy RPM selinux-policy-3.5.13-17.fc10
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name catchall_file
Host Name localhost.localdomain
Platform Linux localhost.localdomain 2.6.27.5-117.fc10.i686
#1 SMP Tue Nov 18 12:19:59 EST 2008 i686 athlon


Raw Audit Messages

node=localhost.localdomain type=AVC msg=audit(1252717793.330:53): avc: denied { write } for pid=19583 comm="certwatch" name="cache" dev=dm-0 ino=3235851 scontext=system_u:system_r:certwatch_t:s0 tcontext=system_ubject_r:var_t:s0 tclass=dir

node=localhost.localdomain type=SYSCALL msg=audit(1252717793.330:53): arch=40000003 syscall=39 success=no exit=-13 a0=58c2bf a1=3ff a2=592354 a3=9be03f0 items=0 ppid=19577 pid=19583 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="certwatch" exe="/usr/bin/certwatch" subj=system_u:system_r:certwatch_t:s0 key=(null)
 
Old 09-12-2009, 12:52 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
?? did you run the suggested fix in the SE error report ??
" restorecon -v './cache' "
 
Old 09-12-2009, 12:56 AM   #3
CZTY
Member
 
Registered: May 2009
Distribution: fedora 10
Posts: 34

Original Poster
Rep: Reputation: 16
I tried ,but didn't work.
# restorecon -v './cache'
restorecon: stat error on ./cache: No such file or directory

Last edited by CZTY; 09-12-2009 at 01:08 AM.
 
Old 09-12-2009, 01:57 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the file .cache is in YOUR home folder
the " . " means it is a hidden file
hit ( ctrl + h ) or click on " view " and check "show hidden files"


run the command IN your home folder.
Code:
cd ~
restorecon -v './cache'
-- and if that dose not work try ---
restorecon -v '.cache'
it might also be the /var/cache file
if that ,then
Code:
restorecon -v '/var/cache'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux is preventing in.tftpd (tftpd_t) "write" to my tftp server designlogicmedia Linux - Newbie 4 09-07-2009 11:30 AM
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM
SELinux is preventing hp (hplip_t) "search" to ./dbus (system_dbusd_var_run_t). CyberJet Linux - Newbie 4 11-13-2008 12:41 PM
"selinux is preventing sshd getattr to /usr/NX/home.nx" ericcarlson Fedora 3 08-25-2008 12:04 PM
Font problem: "failed to write cache" jnsg Slackware 3 07-16-2007 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration