Bug 589505 - SELinux is preventing shutdown "ioctl" access on /var/log/kdm.log.
Summary: SELinux is preventing shutdown "ioctl" access on /var/log/kdm.log.
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-05-06 10:35 UTC by Karel Volný
Modified: 2010-07-29 16:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-07-29 16:50:31 UTC
Type: ---

Attachments (Terms of Use)

Description Karel Volný 2010-05-06 10:35:47 UTC

SELinux is preventing shutdown "ioctl" access on /var/log/kdm.log.

Podrobný popis:

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

Povolení přístupu:

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

Další informace:

Kontext zdroje                system_u:system_r:shutdown_t:s0-s0:c0.c1023
Kontext cíle                 system_u:object_r:xserver_log_t:s0
Objekty cíle                 /var/log/kdm.log [ file ]
Zdroj                         shutdown
Cesta zdroje                  shutdown
Port                          <Neznámé>
Počítač                    (removed)
RPM balíčky zdroje          
RPM balíčky cíle           
RPM politiky                  selinux-policy-3.7.19-10.fc13
Selinux povolen               True
Typ politiky                  targeted
Vynucovací režim            Enforcing
Název zásuvného modulu     catchall
Název počítače            (removed)
Platforma                     Linux (removed)
                     #1 SMP Tue Apr 20 08:57:50
                              UTC 2010 x86_64 x86_64
Počet upozornění           1
Poprvé viděno               Čt 6. květen 2010, 12:27:32 CEST
Naposledy viděno             Čt 6. květen 2010, 12:27:32 CEST
Místní ID                   7576cd78-67a3-4748-af7c-71e868187c1a
Čísla řádků              

Původní zprávy auditu      

node=(removed) type=AVC msg=audit(1273141652.323:22561): avc:  denied  { ioctl } for  pid=20541 comm="shutdown" path="/var/log/kdm.log" dev=sda2 ino=296 scontext=system_u:system_r:shutdown_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xserver_log_t:s0 tclass=file

Hash String generated from  catchall,shutdown,shutdown_t,xserver_log_t,file,ioctl
audit2allow suggests:

#============= shutdown_t ==============
allow shutdown_t xserver_log_t:file ioctl;

Comment 1 Daniel Walsh 2010-07-29 16:50:31 UTC
Fixed in selinux-policy-3.7.19-39.fc13

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