Project

General

Profile

Actions

Bug #12183

closed

[crunch-run] Handle symlinks with absolute paths into output directory

Added by Peter Amstutz about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-

Description

This is suspicious:

2017-08-28T11:09:17.982121623Z CMD: ln -s /var/spool/cwl/STAR-Fusion_outdir/star-fusion.preliminary/star-fusion.filter.intermediates_dir/star-fusion.filtered /var/spool/cwl/STAR-Fusion_outdir/star-fusion.preliminary/star-fusion.fusion_candidates.preliminary.filtered

This seems to be creating a symlink to an absolute path inside the container. However, crunch-run (which collects the outputs) executes outside the container, which means it cannot dereference symlinks to arbitrary paths inside the container. It is already able to handle symlinks to mounted input files, and relative symlinks within the output directory, but doesn't correctly handle this case of a symlink with an absolute path to another file in the output directory. This should be handled correctly.

Currently it looks like putting a symlink foo->/etc/shadow (or ->../../../../../../etc/shadow) will cause crunch-run to store /etc/shadow from the compute node, not the container. This seems bad. Also, it looks like we follow symlinks to files, but not symlinks to dirs, which seems like a confusing rule.


Subtasks 2 (0 open2 closed)

Task #12205: Review 12183-crunch-run-symlinksResolvedPeter Amstutz09/29/2017Actions
Task #12312: FixResolvedPeter Amstutz09/28/2017Actions

Related issues

Related to Arvados - Bug #12273: [crunch] Should not try to upload special filesResolvedTom Clegg09/28/2017Actions
Related to Arvados - Bug #12606: Symlink in output points to invalid location -- no such file or directoryResolvedPeter Amstutz11/17/2017Actions
Actions

Also available in: Atom PDF