{"action":"closed","issue":{"url":"https://api.github.com/repos/Friz-zy/pyspaces/issues/5","repository_url":"https://api.github.com/repos/Friz-zy/pyspaces","labels_url":"https://api.github.com/repos/Friz-zy/pyspaces/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Friz-zy/pyspaces/issues/5/comments","events_url":"https://api.github.com/repos/Friz-zy/pyspaces/issues/5/events","html_url":"https://github.com/Friz-zy/pyspaces/issues/5","id":167045066,"number":5,"title":"mount userspace (space execute --mnt) does not work","user":{"login":"fpemud","id":1938250,"avatar_url":"https://avatars.githubusercontent.com/u/1938250?v=3","gravatar_id":"","url":"https://api.github.com/users/fpemud","html_url":"https://github.com/fpemud","followers_url":"https://api.github.com/users/fpemud/followers","following_url":"https://api.github.com/users/fpemud/following{/other_user}","gists_url":"https://api.github.com/users/fpemud/gists{/gist_id}","starred_url":"https://api.github.com/users/fpemud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpemud/subscriptions","organizations_url":"https://api.github.com/users/fpemud/orgs","repos_url":"https://api.github.com/users/fpemud/repos","events_url":"https://api.github.com/users/fpemud/events{/privacy}","received_events_url":"https://api.github.com/users/fpemud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T13:27:31Z","updated_at":"2016-07-22T13:32:39Z","closed_at":"2016-07-22T13:32:38Z","body":"```\r\nmysys / # mount | grep /mnt\r\nmysys / # python2.7 /usr/bin/space execute --pid --mnt bash -c 'mount -t tmpfs tmpfs /mnt'\r\nmysys / # mount | grep /mnt\r\ntmpfs on /mnt type tmpfs (rw,relatime)\r\n```\r\n\r\nFrom the above experiment, we can see that the /mnt mount is not isolated in the \"mount namespace\" of the new process.\r\n\r\ncompare to unshare, which behaves correctly:\r\n```\r\nmysys / # mount | grep /mnt\r\nmysys / # unshare -m bash -c 'mount -t tmpfs tmpfs /mnt'\r\nmysys / # mount | grep /mnt\r\n```\r\n\r\nIt is very ugly to call \"unshare\" in my python script compared to the pyspaces.Container API.\r\nAlthough the experiment is done with CLI, but I know the API behaves the same."}}
{"actor":{"display_login":"fpemud"}}