DCP: Set sticky bit for folder and secure delete

This commit is contained in:
Sebastian Serth
2021-10-18 01:24:17 +02:00
parent 04c896c7de
commit 68c8f1dbdf
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class Runner::Strategy::DockerContainerPool < Runner::Strategy
end
end
end
FileUtils.chmod_R('+rwX', local_workspace_path)
FileUtils.chmod_R('+rwtX', local_workspace_path)
end
def destroy_at_management

View File

@ -106,7 +106,7 @@ describe Runner::Strategy::DockerContainerPool do
end
it 'sets permission bits on the workspace' do
expect(FileUtils).to receive(:chmod_R).with('+rwX', local_path)
expect(FileUtils).to receive(:chmod_R).with('+rwtX', local_path)
container_pool.copy_files(files)
end