@@ -172,7 +172,7 @@ def test_handle_register():
172172 file_path = "test_handle_register.bin"
173173
174174 # Create file with POSIX operations
175- fd = os .open (file_path , os .O_CREAT | os .O_RDWR , 0o644 )
175+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR , 0o600 )
176176
177177 # Write test data using POSIX write
178178 test_data = b"Test data for cuFile - POSIX write"
@@ -502,7 +502,7 @@ def test_cufile_read_write():
502502
503503 try :
504504 # Create file with O_DIRECT
505- fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o644 )
505+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o600 )
506506
507507 # Register buffers with cuFile
508508 write_buf_int = int (write_buf )
@@ -601,7 +601,7 @@ def test_cufile_read_write_host_memory():
601601
602602 try :
603603 # Create file with O_DIRECT
604- fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o644 )
604+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o600 )
605605
606606 # Register host buffers with cuFile
607607 write_buf_int = int (write_buf )
@@ -702,7 +702,7 @@ def test_cufile_read_write_large():
702702
703703 try :
704704 # Create file with O_DIRECT
705- fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o644 )
705+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o600 )
706706
707707 # Register buffers with cuFile
708708 write_buf_int = int (write_buf )
@@ -793,7 +793,7 @@ def test_cufile_write_async(cufile_env_json):
793793
794794 # Create test file
795795 file_path = "test_cufile_write_async.bin"
796- fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o644 )
796+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o600 )
797797
798798 try :
799799 # Register file handle
@@ -888,7 +888,7 @@ def test_cufile_read_async(cufile_env_json):
888888 file_path = "test_cufile_read_async.bin"
889889
890890 # First create and write test data without O_DIRECT
891- fd_temp = os .open (file_path , os .O_CREAT | os .O_RDWR , 0o644 )
891+ fd_temp = os .open (file_path , os .O_CREAT | os .O_RDWR , 0o600 )
892892 # Create test data that's aligned to 4096 bytes
893893 test_string = b"Async read test data for cuFile!"
894894 test_string_len = len (test_string )
@@ -992,7 +992,7 @@ def test_cufile_async_read_write(cufile_env_json):
992992
993993 # Create test file
994994 file_path = "test_cufile_async_rw.bin"
995- fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o644 )
995+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o600 )
996996
997997 try :
998998 # Register file handle
@@ -1139,7 +1139,7 @@ def test_batch_io_basic():
11391139
11401140 try :
11411141 # Create file with O_DIRECT
1142- fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o644 )
1142+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o600 )
11431143
11441144 # Register buffers with cuFile
11451145 for buf in buffers :
@@ -1353,7 +1353,7 @@ def test_batch_io_cancel():
13531353
13541354 try :
13551355 # Create file with O_DIRECT
1356- fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o644 )
1356+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o600 )
13571357
13581358 # Register buffers with cuFile
13591359 for buf in buffers :
@@ -1463,7 +1463,7 @@ def test_batch_io_large_operations():
14631463
14641464 try :
14651465 # Create file with O_DIRECT
1466- fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o644 )
1466+ fd = os .open (file_path , os .O_CREAT | os .O_RDWR | os .O_DIRECT , 0o600 )
14671467
14681468 # Register all buffers with cuFile
14691469 all_buffers = write_buffers + read_buffers
0 commit comments