(In reply to André Costa from comment #11) > Does this make sense? If so, why is `stat("/home")` failing? Do you have read permission at the root directory? Sometime, people may remove read permission but keep execute permission at the root directory for security reason. That make you can access subdirectories but not to read the root itself. In this case, stat("/xxx") fails.
Bug 1947617 Comment 12 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to André Costa from comment #11) > Does this make sense? If so, why is `stat("/home")` failing? Do you have read permission at the root directory? Sometime, people may remove read permission but keep execute permission at the root directory for security reason. That make you can access subdirectories but not to read the root itself. In this case, stat("/xxx") fails.
(In reply to André Costa from comment #11) > Does this make sense? If so, why is `stat("/home")` failing? Do you have read permission at the root directory? Sometime, people may remove read permission but keep execute permission at the root directory for security reason. That make you can access subdirectories but not to read the root itself. In this case, stat("/xxx") fails. Since it is in mesa, we don't have much to do from firefox. One of potential workaround is to translate these paths specified in env vars to relative paths when it happens to prevent it to visit directory out side of $HOME.
(In reply to André Costa from comment #11) > Does this make sense? If so, why is `stat("/home")` failing? Do you have read permission at the root directory? Sometime, people may remove read permission but keep execute permission at the root directory for security reason. That make you can access subdirectories but not to read the root itself. In this case, stat("/xxx") fails. Since it is in mesa, we don't have much to do from firefox. One of potential workaround is to translate these paths specified in env vars to relative paths when it happens to prevent it to visit directories out side of $HOME.
(In reply to André Costa from comment #11) > Does this make sense? If so, why is `stat("/home")` failing? Do you have read permission at the root directory? Sometime, people may remove read permission but keep execute permission at the root directory for security reason. That make you can access subdirectories but not to read the root itself. In this case, stat("/xxx") fails. Since it is in mesa, we don't have much to do from firefox. One of potential workaround is to translate these paths specified in env vars to relative paths when it happens to prevent it to visit directories out side of $HOME. Or, just warn the user how to do workaround with it.