Access to timedatectl inside a snap with core24

We have a snap which we mabve migrated from core18 to core24. The access to timedatecl is now denied. It used to work (see this issue which was part of the initial effort to get it working with a core18 based snap Managing time, date and timezone in Ubuntu Core).

Now with core 24 when I open a shell inside the snap I get the following error:

$ snap run --shell epi-edge.main
$ timedatectl
Failed to connect to bus: Permission denied

Also from the journal at the same time.

May 15 11:58:42 episensor-e45f01b79b67 audit[529003]: AVC apparmor="DENIED" operation="bind" profile="snap.epi-edge.main" pid=529003 comm="timedatectl.rea" family="unix" sock_type="stream" protocol=0 requested_mask="bind" denied_mask="bind" addr="@f2c62d8594021f15/bus/timedatectl.rea/system"
May 15 11:58:42 episensor-e45f01b79b67 kernel: audit: type=1400 audit(1747310322.053:78910): apparmor="DENIED" operation="bind" profile="snap.epi-edge.main" pid=529003 comm="timedatectl.rea" family="unix" sock_type="stream" protocol=0 requested_mask="bind" denied_mask="bind" addr="@f2c62d8594021f15/bus/timedatectl.rea/system"

The same interfaces are connected as previously.

Hmm, this is clearly weird, the interface has not changed since the last discussion:

Hi Ogra, thanks for jumping on this. Have you managed to confirm the difference in timedatectl handling between core18 and core24? Would appreciate some direction as this is the last thing preventing release of our app on core24.

@ogra - if you’re away, is there anyone else in Canonical who could assist? Thanks!

You should always be able to use the support portal and the support team might be able to help …

Adding comment here too for public. This issue has been already addressed by PR.

3 Likes