Bug 564897 - SELinux hindert groupadd (groupadd_t) "write" am Zugriff auf /home/simon/.xsession-errors (user_home_t).
Summary: SELinux hindert groupadd (groupadd_t) "write" am Zugriff auf /home/simon/.xse...
Keywords:
Status: CLOSED DUPLICATE of bug 538428
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2dd79793d12...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-13 17:15 UTC by Simon Lewis
Modified: 2010-11-30 17:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-02-14 14:56:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Simon Lewis 2010-02-13 17:15:18 UTC
Zusammenfassung:

SELinux hindert groupadd (groupadd_t) "write" am Zugriff auf
/home/simon/.xsession-errors (user_home_t).

Detaillierte Beschreibung:

[groupadd hat einen toleranten Typ (groupadd_t). Dieser Zugriff wurde nicht
verweigert.]

SELinux denied access requested by groupadd. /home/simon/.xsession-errors may be
a mislabeled. /home/simon/.xsession-errors default SELinux type is xdm_home_t,
but its current type is user_home_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.

Zugriff erlauben:

Sie können den Standarddateikontext für diese Datei wiederherstellen durch die
Ausführung des restorecon-Befehls. restorecon '/home/simon/.xsession-errors',
wenn diese Datei ein Verzeichnis ist, Sie können es auch rekursiv machen durch
restorecon -R '/home/simon/.xsession-errors'.

Fixer Befehl:

restorecon '/home/simon/.xsession-errors'

Zusätzliche Informationen:

Quellkontext                  unconfined_u:system_r:groupadd_t:s0
Zielkontext                   unconfined_u:object_r:user_home_t:s0
Zielobjekte                   /home/simon/.xsession-errors [ file ]
Quelle                        groupadd
Quellen-Pfad                  /usr/sbin/groupadd
Port                          <Unbekannt>
Host                          (removed)
Quellen-RPM-Pakete            shadow-utils-4.1.2-9.fc10
Ziel-RPM-Pakete               
RPM-Richtlinie                selinux-policy-3.5.13-55.fc10
SELinux aktiviert             True
Richtlinienversion            targeted
Enforcing-Modus               Enforcing
Plugin-Name                   restorecon
Hostname                      (removed)
Plattform                     Linux (removed) 2.6.27.21-170.2.56.fc10.i686 #1
                              SMP Mon Mar 23 23:37:54 EDT 2009 i686 i686
Anzahl der Alarme             2
Zuerst gesehen                Sa 19 Sep 2009 12:14:33 CEST
Zuletzt gesehen               Sa 19 Sep 2009 12:26:17 CEST
Lokale ID                     42f551ce-32d0-4cc4-ad28-73c84ce40578
Zeilennummern                 

Raw-Audit-Meldungen           

node=(removed) type=AVC msg=audit(1253355977.549:27): avc:  denied  { write } for  pid=3367 comm="groupadd" path="/home/simon/.xsession-errors" dev=sda7 ino=269289 scontext=unconfined_u:system_r:groupadd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1253355977.549:27): avc:  denied  { write } for  pid=3367 comm="groupadd" path="/home/simon/.xsession-errors" dev=sda7 ino=269289 scontext=unconfined_u:system_r:groupadd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1253355977.549:27): arch=40000003 syscall=11 success=yes exit=0 a0=93873a8 a1=9386618 a2=93864c8 a3=0 items=0 ppid=3366 pid=3367 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="groupadd" exe="/usr/sbin/groupadd" subj=unconfined_u:system_r:groupadd_t:s0 key=(null)



Hash String generated from  restorecon,groupadd,groupadd_t,user_home_t,file,write
audit2allow suggests:

#============= groupadd_t ==============
allow groupadd_t user_home_t:file write;

Comment 1 Daniel Walsh 2010-02-14 14:56:27 UTC
yum -y update

*** 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.