Bug 541692 - SELinux is preventing /bin/rm "write" access on /var/lib/misc.
Summary: SELinux is preventing /bin/rm "write" access on /var/lib/misc.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:eb0ce683b15...
: 541693 541695 541696 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-26 18:32 UTC by romal
Modified: 2010-08-20 01:47 UTC (History)
64 users (show)

Fixed In Version: selinux-policy-3.6.32-120.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-07 22:46:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description romal 2009-11-26 18:32:29 UTC
Zusammenfassung:

SELinux is preventing /bin/rm "write" access on /var/lib/misc.

Detaillierte Beschreibung:

[rm hat einen toleranten Typ (prelink_cron_system_t). Dieser Zugriff wurde nicht
verweigert.]

SELinux denied access requested by rm. It is not expected that this access is
required by rm 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.

Zugriff erlauben:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Zusätzliche Informationen:

Quellkontext                  system_u:system_r:prelink_cron_system_t:s0-s0:c0.c
                              1023
Zielkontext                   system_u:object_r:var_lib_t:s0
Zielobjekte                   /var/lib/misc [ dir ]
Quelle                        rm
Quellen-Pfad                  /bin/rm
Port                          <Unbekannt>
Host                          (removed)
Quellen-RPM-Pakete            coreutils-7.6-7.fc12
Ziel-RPM-Pakete               filesystem-2.4.30-2.fc12
RPM-Richtlinie                selinux-policy-3.6.32-49.fc12
SELinux aktiviert             True
Richtlinienversion            targeted
Enforcing-Modus               Enforcing
Plugin-Name                   catchall
Hostname                      (removed)
Plattform                     Linux (removed) 2.6.31.6-145.fc12.x86_64
                              #1 SMP Sat Nov 21 15:57:45 EST 2009 x86_64 x86_64
Anzahl der Alarme             3
Zuerst gesehen                Do 26 Nov 2009 17:15:36 CET
Zuletzt gesehen               Do 26 Nov 2009 17:15:36 CET
Lokale ID                     bcdfe699-fb2a-41bd-9f0a-5fc5742bbe85
Zeilennummern                 

Raw-Audit-Meldungen           

node=(removed) type=AVC msg=audit(1259252136.735:22965): avc:  denied  { write } for  pid=20115 comm="rm" name="misc" dev=sda3 ino=57347 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_lib_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1259252136.735:22965): avc:  denied  { remove_name } for  pid=20115 comm="rm" name="prelink.force" dev=sda3 ino=2284 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_lib_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1259252136.735:22965): avc:  denied  { unlink } for  pid=20115 comm="rm" name="prelink.force" dev=sda3 ino=2284 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1259252136.735:22965): arch=c000003e syscall=263 success=yes exit=0 a0=ffffffffffffff9c a1=7fffbfa16f3d a2=0 a3=7fffbfa14e80 items=0 ppid=20112 pid=20115 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="rm" exe="/bin/rm" subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-49.fc12,catchall,rm,prelink_cron_system_t,var_lib_t,dir,write
audit2allow suggests:

#============= prelink_cron_system_t ==============
allow prelink_cron_system_t var_lib_t:dir { write remove_name };
allow prelink_cron_system_t var_lib_t:file unlink;

Comment 1 Daniel Walsh 2009-11-30 16:30:36 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.6.32-52.fc12.noarch

Comment 2 Daniel Walsh 2009-11-30 16:32:00 UTC
*** Bug 541693 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2009-11-30 16:32:20 UTC
*** Bug 541695 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2009-11-30 16:32:40 UTC
*** Bug 541696 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2009-12-01 16:52:50 UTC
selinux-policy-3.6.32-52.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-52.fc12

Comment 6 Fedora Update System 2009-12-03 04:59:59 UTC
selinux-policy-3.6.32-52.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12549

Comment 7 Fedora Update System 2009-12-03 20:24:52 UTC
selinux-policy-3.6.32-55.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-55.fc12

Comment 8 Fedora Update System 2009-12-04 23:42:56 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12650

Comment 9 Fedora Update System 2009-12-08 07:49:30 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-08-05 13:21:49 UTC
selinux-policy-3.6.32-120.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-120.fc12

Comment 11 Fedora Update System 2010-08-20 01:41:52 UTC
selinux-policy-3.6.32-120.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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