-
由 Lucas Meneghel Rodrigues 提交于
Currently avocado uses /var/tmp/avocado as the default location for the avocado tmp dir. This is a bug from the security standpoint, since a malicious user could create a /var/tmp/avocado symlink pointing to an important directory of the system. So, instead of using /var/tmp/avocado, remove the ability to configure the base tmp directory (other than the traditional $TMPDIR environment variable), and make the data_dir.get_tmp_dir() API to return a safe, non predictable temporary directory. Recommended reading: https://kurt.seifried.org/2012/03/14/creating-temporary-files-securely/ http://www.linuxsecurity.com/content/view/115462/151/Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
7015aa32