From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [Bug #11500] /proc/net bug related to selinux Date: Mon, 15 Sep 2008 02:16:40 +0200 Message-ID: <200809150216.41156.rjw@sisk.pl> References: <20080913123722.e238ae2a.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080913123722.e238ae2a.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org> Content-Disposition: inline Sender: kernel-testers-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Andrew Morton Cc: James Morris , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, sds-+05T5uksL2qpZYMLLGbcSA@public.gmane.org On Saturday, 13 of September 2008, Andrew Morton wrote: > On Sat, 13 Sep 2008 10:15:43 +1000 (EST) James Morris wrote: > > > On Fri, 12 Sep 2008, Andrew Morton wrote: > > > > > > > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=11500 > > > > > Subject : /proc/net bug related to selinux > > > > > Submitter : Andrew Morton > > > > > Date : 2008-09-04 17:45 (9 days old) > > > > > References : http://marc.info/?l=linux-kernel&m=122055041313270&w=4 > > > > > > > > I think this might be a regression caused by namespace changes which we > > > > By which I mean, this was caused by a non-SELinux change to the upstream > > kernel many, many eons ago. > > hm, seems that 2.6.24 is OK but 2.6.25 is not. I must have missed the > bug when testing 2.6.25-based kernels. > > I started a git bisection search but after half an hour I hit bad > bisection breakage: a complete machine hang in fib_rules_init(). > > > > > addressed in SELinux policy. Which distro version & policy version is > > > > this seen with? > > > > > > > > > > FC5 on x86_32 and FC6 on x86_64. > > > > As mentioned in the bugzilla, any related avc messages would be useful. > > 2.6.25 dmesg: http://userweb.kernel.org/~akpm/dmesg-sony.txt > /var/log/messages: http://userweb.kernel.org/~akpm/messages-sony.txt > > The latter includes this: > > Sep 13 12:32:43 sony kernel: SELinux: class key not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: class dccp_socket not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: class memprotect not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: class peer not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: class capability2 not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class dir not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class file not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class chr_file not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class blk_file not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class fifo_file not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission dccp_recv in class node not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission dccp_send in class node not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission recvfrom in class node not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission sendto in class node not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission dccp_recv in class netif not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission dccp_send in class netif not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission ingress in class netif not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission egress in class netif not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission setkeycreate in class process not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission setsockcreate in class process not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission setfcap in class capability not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission polmatch in class association not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission flow_in in class packet not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission flow_out in class packet not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission forward_in in class packet not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission forward_out in class packet not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: the above unknown classes and permissions will be denied > Sep 13 12:32:44 sony kernel: type=1403 audit(1221309118.644:3): policy loaded auid=4294967295 ses=4294967295 > Sep 13 12:32:44 sony kernel: type=1400 audit(1221334321.726:4): avc: denied { audit_write } for pid=400 comm="hwclock" capability=29 scontext=system_u:system_r:hwclock_t:s0 tcontext=system_u:system_r:hwclock_t:s0 tclass=capability > > > Why am I seeing this on two machines and two vanilla-installed distros > but nobody else is reporting it? Well, it seems no one else is testing selinux ... From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755438AbYIOALo (ORCPT ); Sun, 14 Sep 2008 20:11:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751044AbYIOALd (ORCPT ); Sun, 14 Sep 2008 20:11:33 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:50954 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753375AbYIOALc (ORCPT ); Sun, 14 Sep 2008 20:11:32 -0400 From: "Rafael J. Wysocki" To: Andrew Morton Subject: Re: [Bug #11500] /proc/net bug related to selinux Date: Mon, 15 Sep 2008 02:16:40 +0200 User-Agent: KMail/1.9.9 Cc: James Morris , linux-kernel@vger.kernel.org, kernel-testers@vger.kernel.org, sds@tycho.nsa.gov References: <20080913123722.e238ae2a.akpm@linux-foundation.org> In-Reply-To: <20080913123722.e238ae2a.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809150216.41156.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, 13 of September 2008, Andrew Morton wrote: > On Sat, 13 Sep 2008 10:15:43 +1000 (EST) James Morris wrote: > > > On Fri, 12 Sep 2008, Andrew Morton wrote: > > > > > > > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=11500 > > > > > Subject : /proc/net bug related to selinux > > > > > Submitter : Andrew Morton > > > > > Date : 2008-09-04 17:45 (9 days old) > > > > > References : http://marc.info/?l=linux-kernel&m=122055041313270&w=4 > > > > > > > > I think this might be a regression caused by namespace changes which we > > > > By which I mean, this was caused by a non-SELinux change to the upstream > > kernel many, many eons ago. > > hm, seems that 2.6.24 is OK but 2.6.25 is not. I must have missed the > bug when testing 2.6.25-based kernels. > > I started a git bisection search but after half an hour I hit bad > bisection breakage: a complete machine hang in fib_rules_init(). > > > > > addressed in SELinux policy. Which distro version & policy version is > > > > this seen with? > > > > > > > > > > FC5 on x86_32 and FC6 on x86_64. > > > > As mentioned in the bugzilla, any related avc messages would be useful. > > 2.6.25 dmesg: http://userweb.kernel.org/~akpm/dmesg-sony.txt > /var/log/messages: http://userweb.kernel.org/~akpm/messages-sony.txt > > The latter includes this: > > Sep 13 12:32:43 sony kernel: SELinux: class key not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: class dccp_socket not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: class memprotect not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: class peer not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: class capability2 not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class dir not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class file not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class chr_file not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class blk_file not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission open in class fifo_file not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission dccp_recv in class node not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission dccp_send in class node not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission recvfrom in class node not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission sendto in class node not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission dccp_recv in class netif not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission dccp_send in class netif not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission ingress in class netif not defined in policy > Sep 13 12:32:43 sony kernel: SELinux: permission egress in class netif not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission setkeycreate in class process not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission setsockcreate in class process not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission setfcap in class capability not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission polmatch in class association not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission flow_in in class packet not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission flow_out in class packet not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission forward_in in class packet not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: permission forward_out in class packet not defined in policy > Sep 13 12:32:44 sony kernel: SELinux: the above unknown classes and permissions will be denied > Sep 13 12:32:44 sony kernel: type=1403 audit(1221309118.644:3): policy loaded auid=4294967295 ses=4294967295 > Sep 13 12:32:44 sony kernel: type=1400 audit(1221334321.726:4): avc: denied { audit_write } for pid=400 comm="hwclock" capability=29 scontext=system_u:system_r:hwclock_t:s0 tcontext=system_u:system_r:hwclock_t:s0 tclass=capability > > > Why am I seeing this on two machines and two vanilla-installed distros > but nobody else is reporting it? Well, it seems no one else is testing selinux ...