Re: [PATCH] JFFS2: Add parameter to reserve disk space for root

David Woodhouse
2012-05-15T15:06:44Z

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

On Tue, 2012-04-10 at 22:22 +0100, Daniel Drake wrote:
>
> + /* Always allow root */
> + if (current_fsuid() == 0 || current_fsgid() == 0)
> + return 1;

I've changed that to if (capable(CAP_SYS_RESOURCE)) rather than having a
hard-coded check for the root user, which is usually the wrong thing to
do. Please test.

--
dwmw2

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 6171 bytes --]