Re: [PATCH 1/3] SECURITY: selinux, fix update_rlimit_cpu parameter

From: David Howells
Date: Tue Jan 05 2010 - 10:51:20 EST


Jiri Slaby <jslaby@xxxxxxx> wrote:

> From: Jiri Slaby <jirislaby@xxxxxxxxx>
>
> 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@xxxxxxxxx>
> Acked-by: James Morris <jmorris@xxxxxxxxx>
> Cc: Stephen Smalley <sds@xxxxxxxxxxxxx>
> Cc: Eric Paris <eparis@xxxxxxxxxxxxxx>

Acked-by: David Howells <dhowells@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/