Bug 571117 - SELinux is preventing updatedb (locate_t) "getattr" to /home/wlee/.gnome2 (unlabeled_t).
Summary: SELinux is preventing updatedb (locate_t) "getattr" to /home/wlee/.gnome2 (un...
Keywords:
Status: CLOSED DUPLICATE of bug 538428
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:9cb111a61da...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-07 06:40 UTC by Weonjong Lee
Modified: 2010-03-07 13:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-07 13:45:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Weonjong Lee 2010-03-07 06:40:55 UTC
요약:

SELinux is preventing updatedb (locate_t) "getattr" to /home/wlee/.gnome2
(unlabeled_t).

상세 설명:

[updatedb은(는) 허용 유형 (locate_t)이 있습니다. 이 액세스는
거부되지 않습니다. ]

SELinux denied access requested by updatedb. /home/wlee/.gnome2 may be a
mislabeled. /home/wlee/.gnome2 default SELinux type is gnome_home_t, but its
current type is unlabeled_t. Changing this file back to the default type, may
fix your problem.

File contexts can be assigned to a file in the following ways.

  * Files created in a directory receive the file context of the parent
    directory by default.
  * The SELinux policy might override the default label inherited from the
    parent directory by specifying a process running in context A which creates
    a file in a directory labeled B will instead create the file with label C.
    An example of this would be the dhcp client running with the dhclient_t type
    and creates a file in the directory /etc. This file would normally receive
    the etc_t type due to parental inheritance but instead the file is labeled
    with the net_conf_t type because the SELinux policy specifies this.
  * Users can change the file context on a file using tools such as chcon, or
    restorecon.

This file could have been mislabeled either by user error, or if an normally
confined application was run under the wrong domain.

However, this might also indicate a bug in SELinux because the file should not
have been labeled with this type.

If you believe this is a bug, please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

액세스 허용:

You can restore the default system context to this file by executing the
restorecon command. restorecon '/home/wlee/.gnome2', if this file is a
directory, you can recursively restore using restorecon -R '/home/wlee/.gnome2'.

Fix 명령 :

restorecon '/home/wlee/.gnome2'

자세한 정보:

소스 문맥                 system_u:system_r:locate_t:s0-s0:c0.c1023
대상 문맥                 system_u:object_r:unlabeled_t:s0
대상 객체                 /home/wlee/.gnome2 [ dir ]
소스                        updatedb
소스 경로                 /usr/bin/updatedb
포트                        <알려지지 않음>
호스트                     (removed)
소스 RPM 패키지          mlocate-0.21.1-1
대상 RPM 패키지          
정책 RPM                    selinux-policy-3.5.13-64.fc10
Selinux 활성화             True
정책 유형                 targeted
강제 모드                 Enforcing
플러그인명               restorecon
호스트명                  (removed)
플랫폼                     Linux (removed) 2.6.27.25-170.2.72.fc10.x86_64 #1 SMP
                              Sun Jun 21 18:39:34 EDT 2009 x86_64 x86_64
통지 카운트              61
초기 화면                 2009년 05월 05일 (화) 오전 04시 31분 59초
마지막 화면              2009년 07월 04일 (토) 오전 04시 30분 52초
로컬 ID                     08ff1195-88f5-43db-a527-76ae5aa7e05e
줄 번호                    

원 감사 메세지          

node=(removed) type=AVC msg=audit(1246649452.562:1040): avc:  denied  { getattr } for  pid=4878 comm="updatedb" path="/home/wlee/.gnome2" dev=sda5 ino=20070402 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1246649452.562:1040): arch=c000003e syscall=6 success=yes exit=0 a0=112ca09 a1=7fff927866f0 a2=7fff927866f0 a3=112a4e0 items=0 ppid=4872 pid=4878 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=168 comm="updatedb" exe="/usr/bin/updatedb" subj=system_u:system_r:locate_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  restorecon,updatedb,locate_t,unlabeled_t,dir,getattr
audit2allow suggests:

#============= locate_t ==============
allow locate_t unlabeled_t:dir getattr;

Comment 1 Daniel Walsh 2010-03-07 13:45:32 UTC

*** This bug has been marked as a duplicate of bug 538428 ***


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