Re: [PATCH] remove binfmts.h from header exports

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Olaf Hering
Date: Wednesday, August 8, 2007 - 10:28 am

On Wed, Aug 08, Alexey Dobriyan wrote:


I wonder why the defines exist at all? My grep doesnt find SUID_DUMP_*.
Looking at the commit message from d6e711448137ca3301512cec41a2c2ce852b3d0a

...
    > >         if (current->euid == current->uid && current->egid == current->gid)
    > >                 current->mm->dumpable = 1;
    >
    > Should this be SUID_DUMP_USER?

    Actually the feedback I had from last time was that the SUID_ defines
    should go because its clearer to follow the numbers. They can go
    everywhere (and there are lots of places where dumpable is tested/used
    as a bool in untouched code)
...

Exporting a random array size is not very useful. The app and the kernel
has to check the string length anyway.

So lets remove the header and the 3 unused defines.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] remove binfmts.h from header exports, Olaf Hering, (Tue Aug 7, 1:16 pm)
Re: [PATCH] remove binfmts.h from header exports, Alexey Dobriyan, (Tue Aug 7, 1:37 pm)
Re: [PATCH] remove binfmts.h from header exports, Rene Herman, (Tue Aug 7, 4:35 pm)
Re: [PATCH] remove binfmts.h from header exports, Olaf Hering, (Tue Aug 7, 11:10 pm)
Re: [PATCH] remove binfmts.h from header exports, Olaf Hering, (Tue Aug 7, 11:14 pm)
Re: [PATCH] remove binfmts.h from header exports, Alexey Dobriyan, (Wed Aug 8, 12:12 am)
Re: [PATCH] remove binfmts.h from header exports, Olaf Hering, (Wed Aug 8, 10:28 am)