Davido wrote:

> Dear list,
> 
> Since today, Vim sends me a strange warning when I write a modified file :
> 
> > "scratch" 357 lines, 9418 characters written
> > 
> > Could not remove security context security.SMACK64 for 
> > /home/[...]/vim/undo/%home%[...]%scratch
> > Could not remove security context security.SMACK64EXEC for 
> > /home/[...]/vim/undo/%home%[...]%scratch
> > Could not remove security context security.SMACK64MMAP for 
> > /home/[...]/vim/undo/%home%[...]%scratch
> 
> This concept seems to be related with SELinux, which is apparently not
> activated on my boxes :
> 
> > $ ls --context /home/[...]/vim/undo/%home%[...]%scratch 
> > 
> > ? /home/david/var/quigonjinn/edit/vim/undo/%home%david%notes%scratch
> 
> (tested on two distinct computers)
> 
> So, Vim does try to remove an inexistant security context on the undofile,
> I guess. This is weird, because I’ve seen no patch related with SELinux
> recently. Any idea ?

The code tries to copy the security context from one file to another.
What happens here apparently is that a context is not present on the
"from" file and then it tries to remove the context from the "to" file,
so that it's also empty there.  Perhaps we should be silent about this
failing.  I suppose it happens because there is nothing to remove.
Hmm, no, there is a check for that.

-- 
If they don't keep on exercising their lips, he thought, their brains
start working.
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui