Bug 543603 - SELinux is preventing /bin/cp "setattr" access on prelink.quick.
Summary: SELinux is preventing /bin/cp "setattr" access on prelink.quick.
Keywords:
Status: CLOSED ERRATA
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:4a22cb8a837...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-02 17:51 UTC by bastian.frank
Modified: 2010-02-08 12:43 UTC (History)
33 users (show)

Fixed In Version: 3.6.32-55.fc12
Clone Of:
Environment:
Last Closed: 2009-12-07 22:47:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description bastian.frank 2009-12-02 17:51:44 UTC
Zusammenfassung:

SELinux is preventing /bin/cp "setattr" access on prelink.quick.

Detaillierte Beschreibung:

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

SELinux denied access requested by cp. It is not expected that this access is
required by cp 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                   prelink.quick [ file ]
Quelle                        cp
Quellen-Pfad                  /bin/cp
Port                          <Unbekannt>
Host                          (removed)
Quellen-RPM-Pakete            coreutils-7.6-7.fc12
Ziel-RPM-Pakete               
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.i686 #1 SMP Sat Nov
                              21 16:28:23 EST 2009 i686 i686
Anzahl der Alarme             1
Zuerst gesehen                Mi 02 Dez 2009 11:28:19 CET
Zuletzt gesehen               Mi 02 Dez 2009 11:28:19 CET
Lokale ID                     9bf8fde5-73a6-4110-bae5-ae5ab77acdcc
Zeilennummern                 

Raw-Audit-Meldungen           

node=(removed) type=AVC msg=audit(1259749699.896:26638): avc:  denied  { setattr } for  pid=4342 comm="cp" name="prelink.quick" dev=dm-0 ino=22284 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(1259749699.896:26638): arch=40000003 syscall=320 success=yes exit=0 a0=5 a1=0 a2=bfacffb0 a3=0 items=0 ppid=4335 pid=4342 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm="cp" exe="/bin/cp" 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,cp,prelink_cron_system_t,var_lib_t,file,setattr
audit2allow suggests:

#============= prelink_cron_system_t ==============
allow prelink_cron_system_t var_lib_t:file setattr;

Comment 1 Daniel Walsh 2009-12-02 18:46:34 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-53.fc12.noarch

Comment 2 Fedora Update System 2009-12-03 20:28:05 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 3 Fedora Update System 2009-12-04 23:46:18 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 4 Fedora Update System 2009-12-08 07:52:57 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.


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