Hi guys,<br>I'm working on Fedora16 and FreeIPA 2.1.4.<br>I executed the command ipa-server-install and during the setup digging in the logs i can find this error, related to SELinux.<br>I'm running in Permissive mode, so nothing prevented me to successfully complete my setup.<br>
<br>Is this an error in the policy?<br><br>Thanks in advance<br>Marco<br><br><span style="font-family:courier new,monospace">[root@freeipa01 ~]# sealert -l 885f3218-de29-4254-b095-0439320b3a50</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">SELinux is preventing /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java from name_connect access on the None .</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">***** Plugin catchall (100. confidence) suggests ***************************</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">If you believe that java should be allowed name_connect access on the <Unknown> by default.</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Then you should report this as a bug.</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">You can generate a local policy module to allow this access.</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Do</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">allow this access for now by executing:</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"># grep java /var/log/audit/audit.log | audit2allow -M mypol</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"># semodule -i mypol.pp</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Additional Information:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Source Context system_u:system_r:pki_ca_t:s0</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Target Context system_u:object_r:ephemeral_port_t:s0</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Target Objects [ None ]</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Source java</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Source Path /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> /bin/java</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Port 59940</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Host <a href="http://freeipa01.unix.mydomain.it">freeipa01.unix.mydomain.it</a></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Source RPM Packages java-1.6.0-openjdk-1.6.0.0-61.1.10.4.fc16.x86_64</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Target RPM Packages</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Policy RPM selinux-policy-3.10.0-75.fc16.noarch</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Selinux Enabled True</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Policy Type targeted</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Enforcing Mode Permissive</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Host Name <a href="http://freeipa01.unix.mydomain.it">freeipa01.unix.mydomain.it</a></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Platform Linux <a href="http://freeipa01.unix.mydomain.it">freeipa01.unix.mydomain.it</a> 3.2.3-2.fc16.x86_64</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> #1 SMP Fri Feb 3 20:08:08 UTC 2012 x86_64 x86_64</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Alert Count 2</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">First Seen Fri 10 Feb 2012 01:16:43 PM CET</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Last Seen Fri 10 Feb 2012 01:17:29 PM CET</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Local ID 885f3218-de29-4254-b095-0439320b3a50</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Raw Audit Messages</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">type=AVC msg=audit(1328876249.581:170): avc: denied { name_connect } for pid=2663 comm="java" dest=59940 scontext=system_u:system_r:pki_ca_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socketnode=<a href="http://freeipa01.unix.mydomain.it">freeipa01.unix.mydomain.it</a> type=SYSCALL msg=audit(1328876249.581:170): arch=c000003e syscall=42 success=yes exit=0 a0=29 a1=7fc00b462680 a2=1c a3=7fc00b462410 items=0 ppid=1 pid=2663 auid=4294967295 uid=993 gid=990 euid=993 suid=993 fsuid=993 egid=990 sgid=990 fsgid=990 tty=(none) ses=4294967295 comm="java" exe="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java" subj=system_u:system_r:pki_ca_t:s0 key=(null)</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Hash: java,pki_ca_t,ephemeral_port_t,None,name_connect</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">audit2allow</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">audit2allow -R</span><br><br clear="all"><br><br>