You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Tobias Pfeiffer (JIRA)" <ji...@apache.org> on 2016/12/09 01:02:38 UTC

[jira] [Comment Edited] (MESOS-4217) Mesos sandbox UI doesn't follow symlinks

    [ https://issues.apache.org/jira/browse/MESOS-4217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15733898#comment-15733898 ] 

Tobias Pfeiffer edited comment on MESOS-4217 at 12/9/16 1:01 AM:
-----------------------------------------------------------------

I am not sure if the original author had the same issue, but at least for me the problem still exists when the symlink points to a directory *outside* the sandbox.

When ssh-ing to the node that executes the task:

{noformat}
$ cd /var/lib/mesos/slaves/.../frameworks/.../executors/.../runs/..
$ ll
total 36K
lrwxrwxrwx 1 1000 users   45 12月  9 09:52 results -> /var/lib/otherdir
-rw-r--r-- 1 1000 users 5.5K 12月  9 09:53 stderr
-rw-r--r-- 1 1000 users 2.8K 12月  9 09:53 stdout
$ ll results/
total 824K
-rw-r--r-- 1 1000 1000  31K 12月  9 09:52 0.bin
-rw-r--r-- 1 1000 1000  42K 12月  9 09:53 1000.bin
-rw-r--r-- 1 1000 1000  31K 12月  9 09:53 1200.bin
...
{noformat}

However, in the sandbox, while the "results" symlink is displayed with the directory icon, clicking the link shows only an empty list (as if it was an empty directory). I don't know exactly if this is maybe intended or necessary for security reasons, but in that case an error message rather than an empty listing would be preferrable?


was (Author: tgpfeiffer):
I am not sure if the original author had the same issue, but at least for me the problem still exists when the symlink points to a directory *outside* the sandbox.

When ssh-ing to the node that executes the task:
$ cd /var/lib/mesos/slaves/.../frameworks/.../executors/.../runs/..
$ ll
total 36K
lrwxrwxrwx 1 1000 users   45 12月  9 09:52 results -> /var/lib/otherdir
-rw-r--r-- 1 1000 users 5.5K 12月  9 09:53 stderr
-rw-r--r-- 1 1000 users 2.8K 12月  9 09:53 stdout
$ ll results/
total 824K
-rw-r--r-- 1 1000 1000  31K 12月  9 09:52 0.bin
-rw-r--r-- 1 1000 1000  42K 12月  9 09:53 1000.bin
-rw-r--r-- 1 1000 1000  31K 12月  9 09:53 1200.bin
...

However, in the sandbox, while the "results" symlink is displayed with the directory icon, clicking the link shows only an empty list (as if it was an empty directory). I don't know exactly if this is maybe intended or necessary for security reasons, but in that case an error message rather than an empty listing would be preferrable?

> Mesos sandbox UI doesn't follow symlinks
> ----------------------------------------
>
>                 Key: MESOS-4217
>                 URL: https://issues.apache.org/jira/browse/MESOS-4217
>             Project: Mesos
>          Issue Type: Bug
>          Components: master
>            Reporter: Mohit Soni
>            Priority: Minor
>
> Current Mesos sandbox UI doesn't follow symlinks. Right now this prevents a user to browse a persistent volume, which is symlinked inside the sandbox directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)