Review your favorite Linux distribution.
Go Back > Blogs > keith82
User Name


Rate this Entry

Print Avc Error

Posted 08-02-2008 at 12:42 AM by keith82

Have installed lunix drivers but have faced the AVC denial. Can anyone help me troubleshoot this error??

below is the summary of the error?


SELinux is preventing the python from using potentially mislabeled files

Detailed Description:

[SELinux is in permissive mode, the operation would have been denied but was
permitted due to permissive mode.]

SELinux has denied python access to potentially mislabeled file(s)
(/root/.hplip/hplip.conf). This means that SELinux will not allow python to use
these files. It is common for users to edit files in their home directory or tmp
directories and then move (mv) them to system directories. The problem is that
the files end up with the wrong file context which confined applications are not
allowed to access.

Allowing Access:

If you want python to access this files, you need to relabel them using
restorecon -v '/root/.hplip/hplip.conf'. You might want to relabel the entire
directory using restorecon -R -v '/root/.hplip'.

Additional Information:

Source Context system_u:system_r:hplip_t:s0
Target Context system_u:object_r:user_home_t:s0
Target Objects /root/.hplip/hplip.conf [ file ]
Source python
Source Path /usr/bin/python
Port <Unknown>
Host localhost.localdomain
Source RPM Packages python-2.5.1-15.fc8
Target RPM Packages
Policy RPM selinux-policy-3.0.8-111.fc8
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Permissive
Plugin Name home_tmp_bad_labels
Host Name localhost.localdomain
Platform Linux localhost.localdomain #1
SMP Mon Jul 21 02:06:29 EDT 2008 i686 i686
Alert Count 34
First Seen Fri 01 Aug 2008 08:38:37 AM EDT
Last Seen Sat 02 Aug 2008 12:04:59 PM EDT
Local ID 069d9927-f724-488e-858d-1c85bb23dbc6
Line Numbers

Raw Audit Messages

host=localhost.localdomain type=AVC msg=audit(1217693099.881:40): avc: denied { getattr } for pid=3959 comm="python" path="/root/.hplip/hplip.conf" dev=dm-0 ino=14909491 scontext=system_u:system_r:hplip_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclass=file

host=localhost.localdomain type=SYSCALL msg=audit(1217693099.881:40): arch=40000003 syscall=195 success=yes exit=0 a0=8eae228 a1=bfbaad78 a2=a92ff4 a3=8e101b8 items=0 ppid=3958 pid=3959 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="python" exe="/usr/bin/python" subj=system_u:system_r:hplip_t:s0 key=(null)

Posted in Uncategorized
Views 757 Comments 0
« Prev     Main     Next »


All times are GMT -5. The time now is 01:07 PM.

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