{"action":"created","issue":{"url":"https://api.github.com/repos/flatpak/flatpak/issues/1496","repository_url":"https://api.github.com/repos/flatpak/flatpak","labels_url":"https://api.github.com/repos/flatpak/flatpak/issues/1496/labels{/name}","comments_url":"https://api.github.com/repos/flatpak/flatpak/issues/1496/comments","events_url":"https://api.github.com/repos/flatpak/flatpak/issues/1496/events","html_url":"https://github.com/flatpak/flatpak/issues/1496","id":306242944,"number":1496,"title":"Files in `/var/lib/flatpak` created with incorrect permissions","user":{"login":"genodeftest","id":934401,"avatar_url":"https://avatars1.githubusercontent.com/u/934401?v=4","gravatar_id":"","url":"https://api.github.com/users/genodeftest","html_url":"https://github.com/genodeftest","followers_url":"https://api.github.com/users/genodeftest/followers","following_url":"https://api.github.com/users/genodeftest/following{/other_user}","gists_url":"https://api.github.com/users/genodeftest/gists{/gist_id}","starred_url":"https://api.github.com/users/genodeftest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genodeftest/subscriptions","organizations_url":"https://api.github.com/users/genodeftest/orgs","repos_url":"https://api.github.com/users/genodeftest/repos","events_url":"https://api.github.com/users/genodeftest/events{/privacy}","received_events_url":"https://api.github.com/users/genodeftest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-18T14:03:06Z","updated_at":"2018-04-12T13:02:53Z","closed_at":null,"author_association":"NONE","body":"Steps to reproduce:\r\n1. Have `umask` set to something permissive, e.g. `0077` for both your root and admin account.\r\n2. Install or update any flatpak package which results in modifying `/var/lib/flatpak/exports/share/mime/globs`\r\n3. Start any python application using the `xdg` package\r\n\r\nWhat happens:\r\nTraceback in the `xdg` python package:\r\n```\r\n  File \"/usr/lib/python3.6/site-packages/xdg/Mime.py\", line 455, in get_type\r\n    update_cache()\r\n  File \"/usr/lib/python3.6/site-packages/xdg/Mime.py\", line 395, in update_cache\r\n    _cache_database()\r\n  File \"/usr/lib/python3.6/site-packages/xdg/Mime.py\", line 372, in _cache_database\r\n    _import_glob_file(path)\r\n  File \"/usr/lib/python3.6/site-packages/xdg/Mime.py\", line 352, in _import_glob_file\r\n    with open(path) as f:\r\nPermissionError: [Errno 13] Permssion denied: '/var/lib/flatpak/exports/share/mime/globs'\r\n```\r\n\r\nWhat should happen:\r\nFlatpak should create `/var/lib/flatpak/exports/share/mime/globs` and other files with correct permissions."},"comment":{"url":"https://api.github.com/repos/flatpak/flatpak/issues/comments/380797213","html_url":"https://github.com/flatpak/flatpak/issues/1496#issuecomment-380797213","issue_url":"https://api.github.com/repos/flatpak/flatpak/issues/1496","id":380797213,"user":{"login":"danielkza","id":747342,"avatar_url":"https://avatars0.githubusercontent.com/u/747342?v=4","gravatar_id":"","url":"https://api.github.com/users/danielkza","html_url":"https://github.com/danielkza","followers_url":"https://api.github.com/users/danielkza/followers","following_url":"https://api.github.com/users/danielkza/following{/other_user}","gists_url":"https://api.github.com/users/danielkza/gists{/gist_id}","starred_url":"https://api.github.com/users/danielkza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielkza/subscriptions","organizations_url":"https://api.github.com/users/danielkza/orgs","repos_url":"https://api.github.com/users/danielkza/repos","events_url":"https://api.github.com/users/danielkza/events{/privacy}","received_events_url":"https://api.github.com/users/danielkza/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T13:02:53Z","updated_at":"2018-04-12T13:02:53Z","author_association":"NONE","body":"I observed this issue with Fedora 27."}}
{"actor":{"display_login":"danielkza"}}