Re: [PATCH v5] fs: make dumpable=2 require fully qualified path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 25, 2012 at 3:14 PM, Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, 25 Jun 2012 11:03:27 -0700
> Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>
>> Instead of introducing a suid_dumpable=3 mode and breaking all users
>> of mode 2, this only disables the unsafe portion of mode 2 (writing to
>> disk via relative path).
>
> It would be nicer to generate the warning at configuration time rather than
> at core-dumping time.  I have a feeling that's Hard To Do, but why?

I actually feel that this is much more discoverable because anyone
trying to figure out why a crash isn't dumping core isn't going to be
looking back in time through their dmesg to find the warning from
setting the sysctl. Additionally, I think it's the same kind of thing
that the other existing "Skipping core dump" printk messages are
reporting.

-Kees

-- 
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux