Sets permission rights to 700 on /var/tmp user dirs
authorDennis Braun <d_braun@kabelmail.de>
Wed, 26 May 2021 20:26:01 +0000 (22:26 +0200)
committerDennis Braun <d_braun@kabelmail.de>
Wed, 26 May 2021 20:26:01 +0000 (22:26 +0200)
Forwarded: yes

Fixes CVE-2020-11867

Gbp-Pq: Name 0006-Fix_CVE-2020-11867.patch

src/AudacityApp.cpp

index 3c29ac70dfc6c5240c9a1079bc5fede180cbb972..338db3f3b8e5508afb3974b5d15b1ddae41fa922 100644 (file)
@@ -1695,7 +1695,7 @@ bool AudacityApp::InitTempDir()
    // The permissions don't always seem to be set on
    // some platforms.  Hopefully this fixes it...
    #ifdef __UNIX__
-   chmod(OSFILENAME(temp), 0755);
+   chmod(OSFILENAME(temp), 0700);
    #endif
 
    bool bSuccess = gPrefs->Write(wxT("/Directories/TempDir"), temp) && gPrefs->Flush();