[lkml]   [1998]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Core dumps and being root
> Doesn't this open a huge security hole?  Right now, a user can do the
> following:
> ln -s some_other_file core
> ./command_that_dumps_core
> and get a core dump in some_other_file.
> Now, suppose root can dump core. Then if there is a link from core to, say,
> /etc/passwd, strategically located, and root dumps core in that directory...
> I don't think there is a problem if root core dumps were always placed in
> /root/core, or some other "safe" location. But not the current directory.

Core dumps shouldnt follow symbolic links is a completely seperate issue
and just as relevant for non setuid programs. Think about /tmp/core

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:43    [W:0.047 / U:10.572 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site