Bug 538391 - SELinux is preventing /sbin/setfiles access to a leaked /tmp/.webmin/727338_1_start.cgi file descriptor.
Summary: SELinux is preventing /sbin/setfiles access to a leaked /tmp/.webmin/727338_1...
Keywords:
Status: CLOSED DUPLICATE of bug 538390
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:b67b11b89a5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-18 13:20 UTC by k.kowalczyk08
Modified: 2009-11-18 13:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-18 13:49:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description k.kowalczyk08 2009-11-18 13:20:38 UTC
Podsumowanie:

SELinux is preventing /sbin/setfiles access to a leaked
/tmp/.webmin/727338_1_start.cgi file descriptor.

Szczegółowy opis:

[restorecon posiada typ zezwalania (setfiles_t). Ten dostęp nie został
odmówiony.]

SELinux denied access requested by the restorecon command. It looks like this is
either a leaked descriptor or restorecon output was redirected to a file it is
not allowed to access. Leaks usually can be ignored since SELinux is just
closing the leak and reporting the error. The application does not use the
descriptor, so it will run properly. If this is a redirection, you will not get
output in the /tmp/.webmin/727338_1_start.cgi. You should generate a bugzilla on
selinux-policy, and it will get routed to the appropriate package. You can
safely ignore this avc.

Zezwalanie na dostęp:

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

Dodatkowe informacje:

Kontekst źródłowy          system_u:system_r:setfiles_t:s0
Kontekst docelowy             system_u:object_r:rpm_script_tmp_t:s0
Obiekty docelowe              /tmp/.webmin/727338_1_start.cgi [ file ]
Źródło                     restorecon
Ścieżka źródłowa         /sbin/setfiles
Port                          <Nieznane>
Komputer                      (removed)
Źródłowe pakiety RPM       policycoreutils-2.0.74-4.fc12
Docelowe pakiety RPM          
Pakiet RPM polityki           selinux-policy-3.6.32-41.fc12
SELinux jest włączony       True
Typ polityki                  targeted
MLS jest włączone           True
Tryb wymuszania               Enforcing
Nazwa wtyczki                 leaks
Nazwa komputera               (removed)
Platforma                     Linux (removed)
                              2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14
                              EST 2009 x86_64 x86_64
Liczba alarmów               4
Po raz pierwszy               śro, 18 lis 2009, 07:06:30
Po raz ostatni                śro, 18 lis 2009, 07:06:30
Lokalny identyfikator         0edcea6e-052f-4c13-9090-ba8b46ca93b3
Liczba wierszy                

Surowe komunikaty audytu      

node=(removed) type=AVC msg=audit(1258524390.786:22548): avc:  denied  { write } for  pid=4219 comm="restorecon" path="/tmp/.webmin/727338_1_start.cgi" dev=dm-0 ino=155756 scontext=system_u:system_r:setfiles_t:s0 tcontext=system_u:object_r:rpm_script_tmp_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1258524390.786:22548): avc:  denied  { write } for  pid=4219 comm="restorecon" path="/tmp/.webmin/727338_1_start.cgi" dev=dm-0 ino=155756 scontext=system_u:system_r:setfiles_t:s0 tcontext=system_u:object_r:rpm_script_tmp_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1258524390.786:22548): arch=c000003e syscall=59 success=yes exit=0 a0=1f7f260 a1=1f7f4c0 a2=1f45110 a3=18 items=0 ppid=4188 pid=4219 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="restorecon" exe="/sbin/setfiles" subj=system_u:system_r:setfiles_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-41.fc12,leaks,restorecon,setfiles_t,rpm_script_tmp_t,file,write
audit2allow suggests:

#============= setfiles_t ==============
allow setfiles_t rpm_script_tmp_t:file write;

Comment 1 Daniel Walsh 2009-11-18 13:49:29 UTC

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


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