{"action":"created","issue":{"url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/107","labels_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/107/comments","events_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/107/events","html_url":"https://github.com/s3fs-fuse/s3fs-fuse/issues/107","id":54978580,"number":107,"title":"chroot catch-22","user":{"login":"consultantRR","id":4399454,"avatar_url":"https://avatars.githubusercontent.com/u/4399454?v=3","gravatar_id":"","url":"https://api.github.com/users/consultantRR","html_url":"https://github.com/consultantRR","followers_url":"https://api.github.com/users/consultantRR/followers","following_url":"https://api.github.com/users/consultantRR/following{/other_user}","gists_url":"https://api.github.com/users/consultantRR/gists{/gist_id}","starred_url":"https://api.github.com/users/consultantRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consultantRR/subscriptions","organizations_url":"https://api.github.com/users/consultantRR/orgs","repos_url":"https://api.github.com/users/consultantRR/repos","events_url":"https://api.github.com/users/consultantRR/events{/privacy}","received_events_url":"https://api.github.com/users/consultantRR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-21T05:12:37Z","updated_at":"2015-01-21T06:02:10Z","closed_at":null,"body":"I am trying to implement a chroot jail backed by s3fs.\r\n\r\nBut, chroot requires that the parent directory be owned by root:root and not world writable.\r\n\r\nIf I use `-o allow_other`, then the permissions on the s3fs mnt directory is root:root 777.\r\n\r\nIf I don't use `-o allow_other` then the permissions on the s3fs mnt directory is root:root 700.\r\n\r\nWhat I actually need in order to make chroot not reject the path is root:root 775.\r\n\r\nManually trying to chmod on the s3fs mnt directory doesn't work either:\r\n\r\n```\r\n# chmod 775 /s3fsmnt\r\nchmod: changing permissions of ‘.’: Input/output error\r\n```\r\n\r\nAny way to do this?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/comments/70788798","html_url":"https://github.com/s3fs-fuse/s3fs-fuse/issues/107#issuecomment-70788798","issue_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/107","id":70788798,"user":{"login":"consultantRR","id":4399454,"avatar_url":"https://avatars.githubusercontent.com/u/4399454?v=3","gravatar_id":"","url":"https://api.github.com/users/consultantRR","html_url":"https://github.com/consultantRR","followers_url":"https://api.github.com/users/consultantRR/followers","following_url":"https://api.github.com/users/consultantRR/following{/other_user}","gists_url":"https://api.github.com/users/consultantRR/gists{/gist_id}","starred_url":"https://api.github.com/users/consultantRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consultantRR/subscriptions","organizations_url":"https://api.github.com/users/consultantRR/orgs","repos_url":"https://api.github.com/users/consultantRR/repos","events_url":"https://api.github.com/users/consultantRR/events{/privacy}","received_events_url":"https://api.github.com/users/consultantRR/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T06:02:10Z","updated_at":"2015-01-21T06:02:10Z","body":"I patched line 3386 of s3fs.cpp from:\r\n```\r\n mp_mode = S_IFDIR | (allow_other ? (S_IRWXU | S_IRWXG | S_IRWXO) : S_IRWXU);\r\n```\r\nto:\r\n```\r\nmp_mode = S_IFDIR | (allow_other ? (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) : S_IRWXU);\r\n```\r\n\r\n...and I believe it is working fine. Perhaps this could be added as an option?\r\n"}}