Skip to content

Commit 8f91a77

Browse files
authored
Insecure world-writable permissions (0o777) on bundled compression binaries in setup.py PostInstall (#112)
* remove world-write on compression binary permissions * remove world-write on compression binary permissions
1 parent 99b0380 commit 8f91a77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def run(self):
1111
if sys.platform.startswith('linux'): # Just for linux, change the attributes
1212
for filepath in self.get_outputs():
1313
if filepath.find("LzmaCompress") > -1 or filepath.find("TianoCompress") > -1 or filepath.find("Brotli") > -1:
14-
os.chmod(filepath, 0o777)
14+
os.chmod(filepath, 0o755) # executable, but not world-writable
1515

1616

1717
if __name__ == "__main__":

0 commit comments

Comments
 (0)