Bug 621819 - SELinux is preventing /bin/bash "write" access on /var/lib/prelink/quick.
SELinux is preventing /bin/bash "write" access on /var/lib/prelink/quick.
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
13
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
setroubleshoot_trace_hash:46cc17bf856...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-06 04:04 EDT by ssabchew
Modified: 2010-08-06 06:57 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-08-06 06:57:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description ssabchew 2010-08-06 04:04:38 EDT
Summary:

SELinux is preventing /bin/bash "write" access on /var/lib/prelink/quick.

Detailed Description:

[prelink has a permissive type (prelink_cron_system_t). This access was not
denied.]

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

Allowing Access:

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

Additional Information:

Source Context                system_u:system_r:prelink_cron_system_t:s0-s0:c0.c
                              1023
Target Context                system_u:object_r:var_lib_t:s0
Target Objects                /var/lib/prelink/quick [ file ]
Source                        prelink
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-1.fc13
Target RPM Packages           prelink-0.4.3-3.fc13
Policy RPM                    selinux-policy-3.7.19-39.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33.6-147.fc13.x86_64 #1 SMP Tue Jul 6 22:32:17
                              UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Thu 05 Aug 2010 12:35:12 PM EEST
Last Seen                     Thu 05 Aug 2010 12:35:12 PM EEST
Local ID                      a9fec678-42ae-4b0f-bbd2-eee093edbf8b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1281000912.535:1525): avc:  denied  { write } for  pid=16385 comm="prelink" name="quick" dev=dm-1 ino=269307 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=AVC msg=audit(1281000912.535:1525): avc:  denied  { open } for  pid=16385 comm="prelink" name="quick" dev=dm-1 ino=269307 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(1281000912.535:1525): arch=c000003e syscall=2 success=yes exit=4 a0=2371450 a1=241 a2=1b6 a3=fffffffffffffff0 items=0 ppid=16375 pid=16385 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=85 comm="prelink" exe="/bin/bash" subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,prelink,prelink_cron_system_t,var_lib_t,file,write
audit2allow suggests:

#============= prelink_cron_system_t ==============
#!!!! The source type 'prelink_cron_system_t' can write to a 'file' of the following type:
# prelink_log_t
#!!!! The source type 'prelink_cron_system_t' can write to a 'file' of the following types:
# prelink_log_t, prelink_var_lib_t

allow prelink_cron_system_t var_lib_t:file { write open };
Comment 1 Miroslav Grepl 2010-08-06 06:57:07 EDT
restorecon -R -v /var/lib

Should fix. If it happens again please reopen the bug.

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