* Willy Tarreau <[email protected]> wrote:

> @@ -276,6 +282,15 @@ asmlinkage int sys_modify_ldt(int func, void __user *ptr,
>  {
>       int ret = -ENOSYS;
>  
> +     if (!sysctl_modify_ldt) {
> +             printk_ratelimited(KERN_INFO
> +                     "Denied a call to modify_ldt() from %s[%d] (uid: %d)."
> +                     " Adjust sysctl if this was not an exploit attempt.\n",
> +                     current->comm, task_pid_nr(current),
> +                     from_kuid_munged(current_user_ns(), current_uid()));

UI nit: so this message should really tell the user _which_ sysctl to 
configure, 
instead of passive-aggressively alluding to the fact that there's a sysctl 
somewhere that might do the trick...

Thanks,

        Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to