LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SELinux is preventing certwatch (certwatch_t) "write" to ./cache (https://www.linuxquestions.org/questions/linux-software-2/selinux-is-preventing-certwatch-certwatch_t-write-to-cache-754563/)

CZTY 09-12-2009 12:47 AM

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_u:object_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_u:object_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)

John VV 09-12-2009 12:52 AM

?? did you run the suggested fix in the SE error report ??
" restorecon -v './cache' "

CZTY 09-12-2009 12:56 AM

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

John VV 09-12-2009 01:57 AM

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'


All times are GMT -5. The time now is 08:32 PM.