{"action":"created","issue":{"url":"https://api.github.com/repos/flatpak/freedesktop-sdk-images/issues/115","repository_url":"https://api.github.com/repos/flatpak/freedesktop-sdk-images","labels_url":"https://api.github.com/repos/flatpak/freedesktop-sdk-images/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/flatpak/freedesktop-sdk-images/issues/115/comments","events_url":"https://api.github.com/repos/flatpak/freedesktop-sdk-images/issues/115/events","html_url":"https://github.com/flatpak/freedesktop-sdk-images/issues/115","id":354374833,"node_id":"MDU6SXNzdWUzNTQzNzQ4MzM=","number":115,"title":"Permission(s) changes on the filesystem(s) between version 1.6 and 18.08","user":{"login":"x80486","id":34633617,"node_id":"MDQ6VXNlcjM0NjMzNjE3","avatar_url":"https://avatars0.githubusercontent.com/u/34633617?v=4","gravatar_id":"","url":"https://api.github.com/users/x80486","html_url":"https://github.com/x80486","followers_url":"https://api.github.com/users/x80486/followers","following_url":"https://api.github.com/users/x80486/following{/other_user}","gists_url":"https://api.github.com/users/x80486/gists{/gist_id}","starred_url":"https://api.github.com/users/x80486/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x80486/subscriptions","organizations_url":"https://api.github.com/users/x80486/orgs","repos_url":"https://api.github.com/users/x80486/repos","events_url":"https://api.github.com/users/x80486/events{/privacy}","received_events_url":"https://api.github.com/users/x80486/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-27T15:52:32Z","updated_at":"2018-11-23T11:12:02Z","closed_at":"2018-08-27T20:11:52Z","author_association":"NONE","body":"So, while I was doing the [JetBrains DataGrip](https://github.com/flathub/flathub/pull/544) Flatpak, I noticed that, if I use the `Freedesktop 18.08` I was getting a warning, but the underlying issue was that the utility `fsnotifier64` (used like `exec /app/extra/DataGrip-2018.2.2/bin/fsnotifier64 --selftest`) couldn’t open `/etc/mtab`:\r\n\r\n```sh\r\nuplink DataGrip: fsnotifier[3]  info: started (self-test mode) (v.20160218.1348)\r\nuplink DataGrip: fsnotifier[3] debug: inotify fd: 3\r\nuplink DataGrip: fsnotifier[3]  info: inotify watch descriptors: 524288\r\nuplink DataGrip: fsnotifier[3]  info: updating roots (curr:0, new:1)\r\nuplink DataGrip: fsnotifier[3] error: cannot open /etc/mtab\r\nuplink DataGrip: fsnotifier[3]  info: finished (0)\r\n```\r\n\r\nIf I use the `Freedesktop 1.6`, this doesn’t happen:\r\n\r\n```sh\r\nuplink DataGrip: fsnotifier[3]  info: started (self-test mode) (v.20160218.1348)\r\nuplink DataGrip: fsnotifier[3] debug: inotify fd: 3\r\nuplink DataGrip: fsnotifier[3]  info: inotify watch descriptors: 524288\r\nuplink DataGrip: fsnotifier[3]  info: updating roots (curr:0, new:1)\r\nuplink DataGrip: fsnotifier[3] debug: mtab: tmpfs : rw,nosuid,nodev,relatime,uid=1000,gid=985\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /usr : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /app : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /usr/lib/dri/intel-vaapi-driver : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /usr/lib/ffmpeg : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /usr/share/runtime/locale : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: tmpfs : rw,nosuid,nodev,relatime,uid=1000,gid=985\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /proc : proc\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /sys/block : sysfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /sys/bus : sysfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /sys/class : sysfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /sys/dev : sysfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /sys/devices : sysfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: tmpfs : rw,nosuid,nodev,relatime,uid=1000,gid=985\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/machine-id : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/skel : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/issue.net : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/ca-certificates : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/timestamp : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/ld.so.conf : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/nsswitch.conf : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/rpc : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/services : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/geoclue : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/profile.d : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/profile : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/hostname : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/gtk-2.0 : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/dbus-1 : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/default : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/terminfo : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/rpm : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/bash_completion.d : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/issue : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/init.d : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/shells : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/xdg : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/ssl : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/pulse : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/motd : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/rcS.d : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/sysctl.conf : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/gtk-3.0 : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/ld.so.cache : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/inputrc : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/version : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/fonts : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/fstab : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/vdpau_wrapper.cfg : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/locale.conf : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/timezone : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/protocols : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/filesystems : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/ca-certificates.conf : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/xml : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/drirc : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /etc/pki : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /var/cache : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /var/data : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /var/config : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /var/tmp : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/host/monitor : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: tmpfs : rw,nosuid,nodev,relatime,uid=1000,gid=985\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/user/1000/p11-kit/pkcs11 : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: tmpfs : rw,nosuid,nodev,relatime,uid=1000,gid=985\r\nuplink DataGrip: fsnotifier[3] debug: mtab: tmpfs : ro,nosuid,nodev,relatime,uid=1000,gid=985\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/user/1000/.flatpak/3363461067 : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: tmpfs : ro,nosuid,nodev,relatime,uid=1000,gid=985\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/user/1000/doc : fuse\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev/null : devtmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev/zero : devtmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev/full : devtmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev/random : devtmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev/urandom : devtmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev/tty : devtmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev/pts : devpts\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /dev/dri : devtmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/user/1000/app/DataGrip : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /home/x80486 : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /home/x80486/.local/share/flatpak : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /home/x80486/.var/app : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /home/x80486/.var/app/DataGrip : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /home/x80486/.var/app/DataGrip/config/user-dirs.dirs : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /tmp/.X11-unix : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /tmp/.X11-unix/X99 : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: tmpfs : rw,nosuid,nodev,relatime,uid=1000,gid=985\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/user/1000/bus : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/user/1000/at-spi-bus : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/systemd/journal/socket : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/systemd/journal/stdout : tmpfs\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/host/fonts : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/host/fonts-cache : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/host/user-fonts-cache : ext4\r\nuplink DataGrip: fsnotifier[3] debug: mtab: /run/host/share/icons : ext4\r\nuplink DataGrip: fsnotifier[3]  info: registering root: /home/x80486\r\n...\r\nuplink DataGrip: fsnotifier[3] debug: unwatching /home/x80486/Workshop/Development/kotlin-micronaut/.git/objects/e8: 15885 (0x17838d0)\r\nuplink DataGrip: fsnotifier[3] debug: unwatching /home/x80486/Workshop/Development/kotlin-micronaut/.git/objects/61: 15886 (0x1783940)\r\nuplink DataGrip: fsnotifier[3] debug: unwatching /home/x80486/Workshop/Development/kotlin-micronaut/.git/objects/37: 15887 (0x17839b0)\r\nuplink DataGrip: fsnotifier[3] debug: unwatching /home/x80486/Workshop/Development/kotlin-micronaut/.git/objects/ba: 15888 (0x1783a20)\r\n```\r\n\r\nThose are the symptoms 've noticed, but I don't really know the root cause for this. My guess is that something changed in that regard between versions.\r\n\r\nIf so, was that intended? Moreover, is it possible to have the same behavior back?"},"comment":{"url":"https://api.github.com/repos/flatpak/freedesktop-sdk-images/issues/comments/441214237","html_url":"https://github.com/flatpak/freedesktop-sdk-images/issues/115#issuecomment-441214237","issue_url":"https://api.github.com/repos/flatpak/freedesktop-sdk-images/issues/115","id":441214237,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTIxNDIzNw==","user":{"login":"cungureanu","id":18263287,"node_id":"MDQ6VXNlcjE4MjYzMjg3","avatar_url":"https://avatars2.githubusercontent.com/u/18263287?v=4","gravatar_id":"","url":"https://api.github.com/users/cungureanu","html_url":"https://github.com/cungureanu","followers_url":"https://api.github.com/users/cungureanu/followers","following_url":"https://api.github.com/users/cungureanu/following{/other_user}","gists_url":"https://api.github.com/users/cungureanu/gists{/gist_id}","starred_url":"https://api.github.com/users/cungureanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cungureanu/subscriptions","organizations_url":"https://api.github.com/users/cungureanu/orgs","repos_url":"https://api.github.com/users/cungureanu/repos","events_url":"https://api.github.com/users/cungureanu/events{/privacy}","received_events_url":"https://api.github.com/users/cungureanu/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T11:12:02Z","updated_at":"2018-11-23T11:12:02Z","author_association":"NONE","body":"@x80486 @TingPing \r\nI had a look to identify the problem. It seems that sdk version 18.08 has removed the symlink for /etc/mtab (which should link to /proc/mounts). This for fsnotifier is a problem, because it only looks for the symlink and doesn't have a fallback for example to check the original file as well.\r\n\r\nCheck the source below for the logic, line 413\r\nhttp://git.jetbrains.org/?p=idea/community.git;a=blob;f=native/fsNotifier/linux/main.c;h=26d9f3795970e4c4e760b7ba021b62fea67ae654;hb=b3e2ed3518e1a315de8ba6c1c542742cb36aea43#l413 \r\n\r\nA solution is either add back /etc/mtab or push a patch to intellij community repository upstream."}}
{"actor":{"display_login":"cungureanu"}}