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)
commit22df4adb049a5cbb340dd935f5bbfa1ab3947562
tree28dead43dd9eb81768e143ced4e9cd45c6a0246f
parent89abd0acf0335f3f760a3c0698d43bb1eaa83e44
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