oss-sec mailing list archives

Re: Fw: Security risk of vim swap files


From: Christian Brabandt <cb () 256bit org>
Date: Fri, 3 Nov 2017 19:30:31 +0100


On Fr, 03 Nov 2017, Scott Court wrote:

" Move the swap file location to protect against CVE-2017-1000382
" More information at http://security.cucumberlinux.com/security/details.php?id=120
" A big thanks goes to Christian Brabandt (cb () 256bit org)
" for helping with this fix.
if ! isdirectory("~/.vim/swap/")
        silent !install -d -m 700 ~/.vim/swap/ 2>&1 > /dev/null

make this
         call system('install -d -m 700 ~/.vim/swap')

Christian
-- 
Der Frieden kann bei uns nicht ausbrechen, weil er viel zu gut gesichert ist.


Current thread: