[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0706121931390.19578@fbirervta.pbzchgretzou.qr>
Date: Tue, 12 Jun 2007 19:32:20 +0200 (CEST)
From: Jan Engelhardt <jengelh@...putergmbh.de>
To: Roland Dreier <rdreier@...co.com>
cc: Anand Jahagirdar <anandjigar@...il.com>,
linux-kernel@...r.kernel.org, security@...nel.org,
Andrew Morton <akpm@...ux-foundation.org>, akpm@...eo.com,
Daniel Hazelton <dhazelton@...er.net>,
Jens Axboe <jens.axboe@...cle.com>,
Jiri Kosina <jikos@...os.cz>
Subject: Re: Patch related with Fork Bobmbing Attack
On Jun 12 2007 10:04, Roland Dreier wrote:
> > + /*
> > + * following code does not allow Non Root User to cross its process
> > + * limit. it alerts administrator about fork bombing attack and prevents
> > + * it.
> > + */
> > if (atomic_read(&p->user->processes) >= p->signal->rlim[RLIMIT_NPROC].rlim_cur)
> > if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RESOURCE) &&
> > - p->user != &root_user)
> > -
> > + p->user != &root_user) {
> > + if (printk_ratelimit())
> > + printk(KERN_CRIT"User with uid %d is crossing its process limit\n",p->user->uid);
> > goto bad_fork_free;
> > + }
>
>please run scripts/checkpatch.pl against your patch. It will point
>out numerous problems with the coding style. Also, I think a space
>between KERN_CRIT and " would look better too.
And uid is %lu, not %d.
And s/its/his/ or s/its/the/;
Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists