[GH-ISSUE #350] Firefox thinks I'm in another timezone! #249

Closed
opened 2026-05-05 05:24:49 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @chiraag-nataraj on GitHub (Mar 4, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/350

This is pretty cool and a side-effect of strict whitelisting that I never would have guessed. Normally, Firefox (and thus every website you visit) knows what the time is on your computer. However, when using a very strict profile (private-etc, private-bin, and private-tmp, among other things), it apparently doesn't know what my timezone is!

It doesn't really matter to me (in the sense that I'd rather that websites not know what my timezone is), but I'm curious what exactly is causing this.

Here's my profile:

# Blacklist/Whitelist

blacklist /usr/local/bin
blacklist /usr/local/sbin

whitelist ${HOME}/.mozilla
whitelist ${HOME}/Downloads/
whitelist ${HOME}/.pulse/
whitelist ${HOME}/.config/pulse/
whitelist ${HOME}/.config/gtk-3.0/
whitelist ${HOME}/.config/google-googletalkplugin/
whitelist ${HOME}/.gtkrc-2.0
whitelist ${HOME}/.gtkrc.mine
whitelist ${HOME}/.Xauthority
whitelist ${HOME}/PDF/

# Private directories

private-bin firefox.real,firefox,which,sh
private-etc hosts,passwd,mime.types,fonts/,mailcap,iceweasel/,xdg/,gtk-3.0/,resolv.conf,X11/,pulse/,adobe/,gcrypt/,alternatives/
private-tmp

# Miscellaneous options

shell none
seccomp
noroot
caps.drop all
protocol unix,inet,inet6
Originally created by @chiraag-nataraj on GitHub (Mar 4, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/350 This is pretty cool and a side-effect of strict whitelisting that I never would have guessed. Normally, Firefox (and thus every website you visit) knows what the time is on your computer. However, when using a very strict profile (`private-etc`, `private-bin`, and `private-tmp`, among other things), it apparently doesn't know what my timezone is! It doesn't really matter to me (in the sense that I'd rather that websites _not_ know what my timezone is), but I'm curious what exactly is causing this. Here's my profile: ``` # Blacklist/Whitelist blacklist /usr/local/bin blacklist /usr/local/sbin whitelist ${HOME}/.mozilla whitelist ${HOME}/Downloads/ whitelist ${HOME}/.pulse/ whitelist ${HOME}/.config/pulse/ whitelist ${HOME}/.config/gtk-3.0/ whitelist ${HOME}/.config/google-googletalkplugin/ whitelist ${HOME}/.gtkrc-2.0 whitelist ${HOME}/.gtkrc.mine whitelist ${HOME}/.Xauthority whitelist ${HOME}/PDF/ # Private directories private-bin firefox.real,firefox,which,sh private-etc hosts,passwd,mime.types,fonts/,mailcap,iceweasel/,xdg/,gtk-3.0/,resolv.conf,X11/,pulse/,adobe/,gcrypt/,alternatives/ private-tmp # Miscellaneous options shell none seccomp noroot caps.drop all protocol unix,inet,inet6 ```
Author
Owner

@temporaryaccount commented on GitHub (Mar 4, 2016):

Most likely it's because you forgot to copy /etc/localtime into your private /etc.

<!-- gh-comment-id:192125890 --> @temporaryaccount commented on GitHub (Mar 4, 2016): Most likely it's because you forgot to copy /etc/localtime into your private /etc.
Author
Owner

@chiraag-nataraj commented on GitHub (Mar 4, 2016):

Ahhh...that would be it!

<!-- gh-comment-id:192149192 --> @chiraag-nataraj commented on GitHub (Mar 4, 2016): Ahhh...that would be it!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#249
No description provided.