]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
SECURITY: selinux, fix update_rlimit_cpu parameter
authorJiri Slaby <jirislaby@gmail.com>
Fri, 28 Aug 2009 08:47:16 +0000 (10:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 Feb 2010 12:50:53 +0000 (04:50 -0800)
commit6db6aced4d9eb83872d6b63dfd95e3c9d2de37c2
treeb6e7fa2dfa1147e61478b3cbc4d7632a2bc21bd7
parent80569f607b59fb59d0e7d86ae6467fefcab8e89b
SECURITY: selinux, fix update_rlimit_cpu parameter

commit 17740d89785aeb4143770923d67c293849414710 upstream.

Don't pass current RLIMIT_RTTIME to update_rlimit_cpu() in
selinux_bprm_committing_creds, since update_rlimit_cpu expects
RLIMIT_CPU limit.

Use proper rlim[RLIMIT_CPU].rlim_cur instead to fix that.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: James Morris <jmorris@namei.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Eric Paris <eparis@parisplace.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/selinux/hooks.c