Re: [PATCH] proc: augment /proc/pid/limits to allow setting ofprocess limits (v2).

From: Andrew Morton
Date: Tue Sep 29 2009 - 16:46:19 EST


On Tue, 29 Sep 2009 16:25:04 -0400
Neil Horman <nhorman@xxxxxxxxxxxxx> wrote:

> 3) modify the proc/pid/limits write routine so that it uses do_setrlimit,
> thereby giving us the previously missing security checks.

I dunno, the interface just seems goofy to me.

Yes, it's always been strange that rlimits cannot be externally
altered. And desirable to extend that. But doing what is really a
syscall via a profs poke when there already exists a syscall which does
the same thing seems Just Wrong.

What reason is there to do it via procfs? Where's the benefit?

Maybe it's a plot to stop people from setting CONFIG_PROC_FS=n.
--
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/