Open GuillaumeCisco opened 1 week ago
Some isssue in kubuntu 24.04, teleport version 16.01
Thanks for a detail bug report! We're waiting to learn how VSCode addressed this issue. https://github.com/electron/electron/issues/41066#issuecomment-2185907037
In the meantime, I wonder how correct that profile shared on the Unity forum is. In the original Ubuntu blogpost, they show this example profile:
abi <abi/4.0>,
include <tunables/global>
/opt/google/chrome/chrome flags=(unconfined) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/chrome>
}
Notice how it just starts with the path to the executable, not with profile chrome <path>
.
In the docs for apparmor profiles, it states that the profile …
syntax is for unattached profiles:
Unattached profiles do not reside in the file system namespace and therefore are not automatically attached to an application. The name of an unattached profile is preceded by the keyword profile. (…)
Unattached profiles are never used automatically, nor can they be transitioned to through a Px rule. They need to be attached to a program by either using a named profile transition (see Section 34.12.7, “Named profile transitions”) or with the change_profile rule (see Section 34.2.5, “Change rules”).
Does it help if you change Connect's profile to the following one?
abi <abi/4.0>,
include <tunables/global>
/opt/Teleport\ Connect/teleport-connect flags=(unconfined) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/teleport-connect>
}
Hello, thank you for your message. I tried with an unattached profile and unfortunately, I still have pretty ofently "Segmentation fault (core dumped)" :/
I updated my Linux laptop today to Ubuntu 24.0 and I can confirm that the fix suggested by you works. The profile I suggested in https://github.com/gravitational/teleport/issues/43168#issuecomment-2185986769 does not work at all. I'll try to add automatic provisioning of the profile in the next day or two.
I wasn't able to reproduce the segfault after adding the profile though. Connect seems to start just fine and I relaunched the app like 20 times, both from the desktop and the terminal.
I think our best bet is to wait for Connect v16.0.2 or greater. It will include an update to Electron. Then we can check if you are able to reproduce the segfault with the profile present. If not, I'll create a separate issue to track that problem.
Expected behavior: Teleport-connect launches correctly without bugs
Current behavior: Teleport-connect displays an error on launch, and after fix still segfault sometimes
Bug details:
This issue appeared after upgrading to ubuntu 24.04. It looks like there is an issue with electron app based on chromium:
I used this workaround: Create file
/etc/apparmor.d/teleport-connect
with content:Then:
$> sudo systemctl restart apparmor.service
Sometimes it works with a displayed error, sometimes it directly segfault: