{"action":"created","issue":{"url":"https://api.github.com/repos/netblue30/firejail/issues/2031","repository_url":"https://api.github.com/repos/netblue30/firejail","labels_url":"https://api.github.com/repos/netblue30/firejail/issues/2031/labels{/name}","comments_url":"https://api.github.com/repos/netblue30/firejail/issues/2031/comments","events_url":"https://api.github.com/repos/netblue30/firejail/issues/2031/events","html_url":"https://github.com/netblue30/firejail/issues/2031","id":338713659,"node_id":"MDU6SXNzdWUzMzg3MTM2NTk=","number":2031,"title":"[feature request] Allow all directories, not just top-level for --private-home","user":{"login":"rieje","id":19966913,"node_id":"MDQ6VXNlcjE5OTY2OTEz","avatar_url":"https://avatars3.githubusercontent.com/u/19966913?v=4","gravatar_id":"","url":"https://api.github.com/users/rieje","html_url":"https://github.com/rieje","followers_url":"https://api.github.com/users/rieje/followers","following_url":"https://api.github.com/users/rieje/following{/other_user}","gists_url":"https://api.github.com/users/rieje/gists{/gist_id}","starred_url":"https://api.github.com/users/rieje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rieje/subscriptions","organizations_url":"https://api.github.com/users/rieje/orgs","repos_url":"https://api.github.com/users/rieje/repos","events_url":"https://api.github.com/users/rieje/events{/privacy}","received_events_url":"https://api.github.com/users/rieje/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-05T20:22:38Z","updated_at":"2018-07-11T17:40:44Z","closed_at":null,"author_association":"NONE","body":"Not exactly sure why the limitation for `--private-home` requiring top-level directories only exists, but it would be great if directories didn't need to be top-level. As a specific example, addons are installed in the `extensions/` directory within the firefox profile directory. Being able to use this directory for `--private-home` means I can run a new and temporary instance of Firefox with these addons pre-installed. If the top-level directory `~/.mozilla` is used instead, then any sensitive footprint-related data are also used in the instance of Firefox and that's a privacy concern (since `~/.mozilla` contains data regarding your Firefox profile)."},"comment":{"url":"https://api.github.com/repos/netblue30/firejail/issues/comments/404252936","html_url":"https://github.com/netblue30/firejail/issues/2031#issuecomment-404252936","issue_url":"https://api.github.com/repos/netblue30/firejail/issues/2031","id":404252936,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDI1MjkzNg==","user":{"login":"chiraag-nataraj","id":14947779,"node_id":"MDQ6VXNlcjE0OTQ3Nzc5","avatar_url":"https://avatars1.githubusercontent.com/u/14947779?v=4","gravatar_id":"","url":"https://api.github.com/users/chiraag-nataraj","html_url":"https://github.com/chiraag-nataraj","followers_url":"https://api.github.com/users/chiraag-nataraj/followers","following_url":"https://api.github.com/users/chiraag-nataraj/following{/other_user}","gists_url":"https://api.github.com/users/chiraag-nataraj/gists{/gist_id}","starred_url":"https://api.github.com/users/chiraag-nataraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiraag-nataraj/subscriptions","organizations_url":"https://api.github.com/users/chiraag-nataraj/orgs","repos_url":"https://api.github.com/users/chiraag-nataraj/repos","events_url":"https://api.github.com/users/chiraag-nataraj/events{/privacy}","received_events_url":"https://api.github.com/users/chiraag-nataraj/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T17:40:44Z","updated_at":"2018-07-11T17:40:44Z","author_association":"COLLABORATOR","body":"If you want _multiple_ temporary Firefox profiles, you can do something like this:\r\n```\r\n#!/bin/bash\r\n\r\n# Edit the variables below to set the directory to copy files from and which files to copy\r\nSRCPROFDIR=~/.mozilla/firefox/5rupfy34.dev-edition-default-1518356819076\r\nDESTPROFDIR=$(mktemp -d -p ~/.mozilla/firefox/)\r\nTOCOPY=( extensions browser-extension-data extension-preferences.json extension-settings.json extensions.json )\r\n\r\nfor i in ${TOCOPY[@]}\r\ndo\r\n    cp -R ${SRCPROFDIR}/${i} ${DESTPROFDIR}/${i}\r\ndone\r\n\r\nfirejail  -- firefox --no-remote --profile ${DESTPROFDIR};\r\nrm -rf ${DESTPROFDIR}\r\n```\r\nYou should only have to modify `$SRCPROFDIR` and `$TOCOPY`. Everything else should Just Work™"}}
{"actor":{"display_login":"chiraag-nataraj"}}