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

Re: .exclude file or similar?



Gabriel Kerneis <gabriel@kerneis.info> wrote:

> posted the following one-liner to generate a single exclude-file
> collecting the content of .exclude in sub-directories:
>
> On Sun, Mar 09, 2014 at 11:11:59AM +0000, Gabriel Kerneis wrote:
> > find / -name .exclude -execdir xargs -a {} readlink -m \; > exclude.file

Beware that the above would allow a malicious user with write access
to any directory to exclude any or all directories on the system
simply by starting an entry with '/'