@@ -120,12 +120,12 @@ cdef extern from 'helper.h' nogil:
120
120
int stderr_
121
121
int abi_for_seccomp
122
122
int * seccomp_handlers
123
- char ** read_exact_files
124
- char ** read_exact_dirs
125
- char ** read_recursive_dirs
126
- char ** write_exact_files
127
- char ** write_exact_dirs
128
- char ** write_recursive_dirs
123
+ const char ** read_exact_files
124
+ const char ** read_exact_dirs
125
+ const char ** read_recursive_dirs
126
+ const char ** write_exact_files
127
+ const char ** write_exact_dirs
128
+ const char ** write_recursive_dirs
129
129
130
130
int has_landlock_check()
131
131
void cptbox_closefrom(int lowfd)
@@ -531,12 +531,12 @@ cdef class Process:
531
531
for i in range (MAX_SYSCALL):
532
532
config.seccomp_handlers[i] = handlers[i]
533
533
534
- config.read_exact_files = alloc_byte_array(self .read_exact_files)
535
- config.read_exact_dirs = alloc_byte_array(self .read_exact_dirs)
536
- config.read_recursive_dirs = alloc_byte_array(self .read_recursive_dirs)
537
- config.write_exact_files = alloc_byte_array(self .write_exact_files)
538
- config.write_exact_dirs = alloc_byte_array(self .write_exact_dirs)
539
- config.write_recursive_dirs = alloc_byte_array(self .write_recursive_dirs)
534
+ config.read_exact_files = < const char ** > alloc_byte_array(self .read_exact_files)
535
+ config.read_exact_dirs = < const char ** > alloc_byte_array(self .read_exact_dirs)
536
+ config.read_recursive_dirs = < const char ** > alloc_byte_array(self .read_recursive_dirs)
537
+ config.write_exact_files = < const char ** > alloc_byte_array(self .write_exact_files)
538
+ config.write_exact_dirs = < const char ** > alloc_byte_array(self .write_exact_dirs)
539
+ config.write_recursive_dirs = < const char ** > alloc_byte_array(self .write_recursive_dirs)
540
540
541
541
if self .process.spawn(pt_child, & config):
542
542
raise RuntimeError (' failed to spawn child' )
0 commit comments