diff options
| author | Lee Duncan <lduncan@suse.com> | 2023-04-24 10:34:39 -0700 |
|---|---|---|
| committer | Lee Duncan <lduncan@suse.com> | 2023-04-24 10:34:39 -0700 |
| commit | b8eb1933d4fdcbe806edead8cfa94879d0fc2015 (patch) | |
| tree | 44148cb84a3f645ec00826561d5f634b7bc01957 /bin/clean | |
| parent | f26c1ae9d255e7db4c3cb51c72dc081e17ad25a4 (diff) | |
| download | targetcli-b8eb1933d4fdcbe806edead8cfa94879d0fc2015.tar.gz | |
Fix changing savedir directory mode
Commit 9f5764dac39b ("saveconfig: set right perms on /etc/target/ dir")
fixed CVE-2020-13867 by ensuring that the mode of the target
meta-data directory (/etc/target) was always mode 0600. But users
can specify a different directory, such as "/tmp", and we don't
want targetcli changing the mode of such directories to 0600. So
only change the mode of the directory, when saving a config file,
if the directory is /etc/target.
Diffstat (limited to 'bin/clean')
0 files changed, 0 insertions, 0 deletions
