]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: change handling of invalid classes (Was: Re: 2.6.26-rc5-mm1 selinux whine)
authorStephen Smalley <sds@tycho.nsa.gov>
Mon, 9 Jun 2008 20:03:56 +0000 (16:03 -0400)
committerJames Morris <jmorris@namei.org>
Mon, 14 Jul 2008 05:01:59 +0000 (15:01 +1000)
commite0b35a2b34de6bc80f9cb6261caa51b051506b19
tree28dead43dd9eb81768e143ced4e9cd45c6a0246f
parentdfe37ab492c8459ca883e99a5fb2a7745b01dafc
selinux: change handling of invalid classes (Was: Re: 2.6.26-rc5-mm1 selinux whine)

On Mon, 2008-06-09 at 01:24 -0700, Andrew Morton wrote:
> Getting a few of these with FC5:
>
> SELinux: context_struct_compute_av:  unrecognized class 69
> SELinux: context_struct_compute_av:  unrecognized class 69
>
> one came out when I logged in.
>
> No other symptoms, yet.

Change handling of invalid classes by SELinux, reporting class values
unknown to the kernel as errors (w/ ratelimit applied) and handling
class values unknown to policy as normal denials.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/services.c