File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " tauri " : patch
3+ ---
4+
5+ Set permission to ` 0o700 ` for the tmp folder used to move the current AppImage on the updater process.
Original file line number Diff line number Diff line change @@ -641,9 +641,13 @@ impl<R: Runtime> Update<R> {
641641#[ cfg( feature = "updater" ) ]
642642#[ cfg( target_os = "linux" ) ]
643643fn copy_files_and_run < R : Read + Seek > ( archive_buffer : R , extract_path : & Path ) -> Result {
644+ use std:: os:: unix:: fs:: PermissionsExt ;
644645 let tmp_dir = tempfile:: Builder :: new ( )
645646 . prefix ( "tauri_current_app" )
646647 . tempdir ( ) ?;
648+ let mut perms = std:: fs:: metadata ( tmp_dir. path ( ) ) ?. permissions ( ) ;
649+ perms. set_mode ( 0o700 ) ;
650+ std:: fs:: set_permissions ( tmp_dir. path ( ) , perms) ?;
647651
648652 let tmp_app_image = & tmp_dir. path ( ) . join ( "current_app.AppImage" ) ;
649653
You can’t perform that action at this time.
0 commit comments