SECURITY: selinux, fix update_rlimit_cpu parameter
commit84e39bcb1418095afb6918226276e1f4785b8329
authorJiri Slaby <jirislaby@gmail.com>
Fri, 28 Aug 2009 08:47:16 +0000 (28 10:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:55:27 +0000 (1 15:55 -0700)
treed7937fed1a8140d30dc0cfb35f2b14ccbd3b93fd
parentb2547d0901583d4cb381a66a771087dd29174faf
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