SELinux Error Configuring Samba

Adam D. Ligas adam at physco.com
Sun Dec 7 22:00:55 UTC 2008


Hey folks,

I'm trying to setup Samba on this F10 server.  To do so, I am trying to
run a program out of the "System" menu.

Menu path:
System -> Administration -> Samba

The program does not run.  Instead, SELinux comes up with the following
error.

--- Begin SELinux Alert ---
Summary:

SELinux is preventing polkitd (polkit_t) "search" to ./32587
(unconfined_notrans_t).

Detailed Description:

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

Sometimes labeling problems can cause SELinux denials. You could try to
restore
the default system file context for ./32587,

restorecon -v './32587'

If this does not work, there is currently no automatic way to allow this
access.
Instead, you can generate a local policy module to allow this access -
see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can
disable
SELinux protection altogether. Disabling SELinux protection is not
recommended.
Please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                system_u:system_r:polkit_t:s0-s0:c0.c1023
Target Context
unconfined_u:system_r:unconfined_notrans_t:s0
Target Objects                ./32587 [ dir ]
Source                        polkitd
Source Path                   /usr/libexec/polkitd
Port                          <Unknown>
Host                          boris
Source RPM Packages           PolicyKit-0.9-3.fc10
Target RPM Packages           
Policy RPM                    selinux-policy-3.5.13-26.fc10
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   catchall_file
Host Name                     boris
Platform                      Linux boris 2.6.27.5-117.fc10.i686 #1 SMP
Tue Nov
                              18 12:19:59 EST 2008 i686 athlon
Alert Count                   1
First Seen                    Sun 07 Dec 2008 04:53:54 PM EST
Last Seen                     Sun 07 Dec 2008 04:53:54 PM EST
Local ID                      7f00770b-bdcb-4561-8b3f-14960c89329d
Line Numbers                  

Raw Audit Messages            

node=boris type=AVC msg=audit(1228686834.70:6634): avc:  denied
{ search } for  pid=32595 comm="polkitd" name="32587" dev=proc
ino=817686 scontext=system_u:system_r:polkit_t:s0-s0:c0.c1023
tcontext=unconfined_u:system_r:unconfined_notrans_t:s0 tclass=dir

node=boris type=SYSCALL msg=audit(1228686834.70:6634): arch=40000003
syscall=5 success=no exit=-13 a0=9b55dd8 a1=8000 a2=0 a3=8000 items=0
ppid=1 pid=32595 auid=4294967295 uid=87 gid=87 euid=87 suid=87 fsuid=87
egid=87 sgid=87 fsgid=87 tty=(none) ses=4294967295 comm="polkitd"
exe="/usr/libexec/polkitd"
subj=system_u:system_r:polkit_t:s0-s0:c0.c1023 key=(null)
--- End SELinux Alert ---

The resolution instructions do not work as listed above.  Basically, I
don't think restorecon can find the directory - I think its made when
you try to run the program.  Each time you run it, you get a separate
SELinux error with a different numbered directory at the end of the
command.

Thoughts?

- Adam




More information about the fedora-selinux-list mailing list