Re: [PATCH] remove suser()

Bernd Eckenfels (ecki-news2002-05@lina.inka.de)
Fri, 7 Jun 2002 07:58:31 +0200


In article <Pine.LNX.4.44.0206062330480.16968-100000@sharra.ivimey.org> you wrote:
>>> +++ linux/include/linux/compatmac.h Tue Jun 4 13:57:33 2002
>>> -#define capable(x) suser()

> Why? The file being changed is in a particular kernel, not in, say, glibc; to
> require compatibilty btw. a file in kernel X and another in kernel Y seems
> stupid... but perhaps I misunderstand.

I must admit, I do not understand why this is needed in new kernels, too.
But the suser() call which actually should be removed is in
/usr/src/linux/include/linux/sched.h. Same is true for fsuser().

It is a good idea to remove it from the code, so everybody is forced to use
a sane api everywhere.

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