Miklos Szeredi 438c84c2f0 ovl: don't follow redirects if redirect_dir=off
Overlayfs is following redirects even when redirects are disabled. If this
is unintentional (probably the majority of cases) then this can be a
problem.  E.g. upper layer comes from untrusted USB drive, and attacker
crafts a redirect to enable read access to otherwise unreadable
directories.

If "redirect_dir=off", then turn off following as well as creation of
redirects.  If "redirect_dir=follow", then turn on following, but turn off
creation of redirects (which is what "redirect_dir=off" does now).

This is a backward incompatible change, so make it dependent on a config
option.

Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-12-11 11:28:10 +01:00
..
2017-05-18 10:33:51 -06:00
2014-01-24 10:55:21 -06:00
2016-12-14 23:48:11 -05:00
2017-05-12 15:57:15 -07:00
2017-02-20 12:16:05 +01:00
2017-10-15 00:47:23 -04:00
2015-07-23 20:59:40 +02:00
2015-07-23 20:59:40 +02:00
2017-08-21 15:54:48 -07:00
2015-10-29 12:57:48 -05:00
2017-09-04 21:42:22 +02:00
2017-09-14 14:54:39 -04:00
2014-12-29 15:40:18 -07:00
2016-03-09 15:33:06 -07:00
2017-09-19 09:20:33 +02:00