Public bug reported: While org.freedesktop.timedate1 [1] can be used to set values, it also provides harmless APIs that any snap should be able to read.
In particular: readonly s Timezone = '...'; readonly b LocalRTC = ...; readonly b CanNTP = ...; readonly b NTP = ...; readonly b NTPSynchronized = ...; readonly t TimeUSec = ...; readonly t RTCTimeUSec = ...; Right now here: readonly s Timezone = 'Europe/Madrid'; readonly b LocalRTC = false; readonly b CanNTP = false; readonly b NTP = false; readonly b NTPSynchronized = true; readonly t TimeUSec = 1755650151712313; readonly t RTCTimeUSec = 1755650151000000; Seems all safe to read by any snap, and very likely even the `ListTimezones()` method seems good to go. I saw firefox [2] accessing to them (to monitor the current timezone), but I don't think this is a desktop-specific API but rather a system one that any app could read without any risk. [1] https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.timedate1.html [2] https://searchfox.org/firefox-main/source/widget/gtk/nsAppShell.cpp#299-303 ** Affects: snapd (Ubuntu) Importance: Medium Status: New ** Description changed: While org.freedesktop.timedate1 [1] can be used to set values, it also provides harmless APIs that any snap should be able to read. In particular: - readonly s Timezone = '...'; - readonly b LocalRTC = ...; - readonly b CanNTP = ...; - readonly b NTP = ...; - readonly b NTPSynchronized = ...; - readonly t TimeUSec = ...; - readonly t RTCTimeUSec = ...; + readonly s Timezone = '...'; + readonly b LocalRTC = ...; + readonly b CanNTP = ...; + readonly b NTP = ...; + readonly b NTPSynchronized = ...; + readonly t TimeUSec = ...; + readonly t RTCTimeUSec = ...; - Seems all safe to read by any snap, and very likely even the - `ListTimezones` is good to go. + Right now here: + + readonly s Timezone = 'Europe/Madrid'; + readonly b LocalRTC = false; + readonly b CanNTP = false; + readonly b NTP = false; + readonly b NTPSynchronized = true; + readonly t TimeUSec = 1755650151712313; + readonly t RTCTimeUSec = 1755650151000000; + + + Seems all safe to read by any snap, and very likely even the `ListTimezones()` method seems good to go. I saw firefox accessing to them, but I don't think this is a desktop- specific API but rather a system one that any app could read without any risk. [1] https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.timedate1.html ** Description changed: While org.freedesktop.timedate1 [1] can be used to set values, it also provides harmless APIs that any snap should be able to read. In particular: readonly s Timezone = '...'; readonly b LocalRTC = ...; readonly b CanNTP = ...; readonly b NTP = ...; readonly b NTPSynchronized = ...; readonly t TimeUSec = ...; readonly t RTCTimeUSec = ...; Right now here: - readonly s Timezone = 'Europe/Madrid'; - readonly b LocalRTC = false; - readonly b CanNTP = false; - readonly b NTP = false; - readonly b NTPSynchronized = true; - readonly t TimeUSec = 1755650151712313; - readonly t RTCTimeUSec = 1755650151000000; + readonly s Timezone = 'Europe/Madrid'; + readonly b LocalRTC = false; + readonly b CanNTP = false; + readonly b NTP = false; + readonly b NTPSynchronized = true; + readonly t TimeUSec = 1755650151712313; + readonly t RTCTimeUSec = 1755650151000000; + Seems all safe to read by any snap, and very likely even the + `ListTimezones()` method seems good to go. - Seems all safe to read by any snap, and very likely even the `ListTimezones()` method seems good to go. + I saw firefox [2] accessing to them, but I don't think this is a + desktop-specific API but rather a system one that any app could read + without any risk. - I saw firefox accessing to them, but I don't think this is a desktop- - specific API but rather a system one that any app could read without any - risk. - - [1] - https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.timedate1.html + [1] https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.timedate1.html + [2] https://searchfox.org/firefox-main/source/widget/gtk/nsAppShell.cpp#299-303 ** Description changed: While org.freedesktop.timedate1 [1] can be used to set values, it also provides harmless APIs that any snap should be able to read. In particular: readonly s Timezone = '...'; readonly b LocalRTC = ...; readonly b CanNTP = ...; readonly b NTP = ...; readonly b NTPSynchronized = ...; readonly t TimeUSec = ...; readonly t RTCTimeUSec = ...; Right now here: readonly s Timezone = 'Europe/Madrid'; readonly b LocalRTC = false; readonly b CanNTP = false; readonly b NTP = false; readonly b NTPSynchronized = true; readonly t TimeUSec = 1755650151712313; readonly t RTCTimeUSec = 1755650151000000; Seems all safe to read by any snap, and very likely even the `ListTimezones()` method seems good to go. - I saw firefox [2] accessing to them, but I don't think this is a - desktop-specific API but rather a system one that any app could read - without any risk. + I saw firefox [2] accessing to them (to monitor the current timezone), + but I don't think this is a desktop-specific API but rather a system one + that any app could read without any risk. [1] https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.timedate1.html [2] https://searchfox.org/firefox-main/source/widget/gtk/nsAppShell.cpp#299-303 ** Summary changed: - Support reading properties from org.freedesktop.timedate1 by default + Support reading and monitoring properties from org.freedesktop.timedate1 by default -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2121004 Title: Support reading and monitoring properties from org.freedesktop.timedate1 by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2121004/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
