Code Monkey home page Code Monkey logo

Comments (7)

floviolleau avatar floviolleau commented on August 22, 2024 1

Hi,

I found the workaround. The issue is for ALL Electron apps.

As a workaround for now, we must do sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

Here for more information:
electron/electron#41066

from desktop.

devinbinnie avatar devinbinnie commented on August 22, 2024 1

Thanks for the insight, created a ticket here: https://mattermost.atlassian.net/browse/MM-59486

from desktop.

devinbinnie avatar devinbinnie commented on August 22, 2024

@floviolleau Is this consistently reproducible? Are you running as root or as a regular user?
Can you try the latest nightly build from here: https://community.mattermost.com/core/channels/desktop-builds

from desktop.

floviolleau avatar floviolleau commented on August 22, 2024

Hi,

I reproduce it all the time.

No root usage

I don't have account on mattermost community so I cannot download.

I think it is an issue with electron

from desktop.

devinbinnie avatar devinbinnie commented on August 22, 2024

Good find! Closing this issue for now, will re-open if there's anything needed from our end.

from desktop.

floviolleau avatar floviolleau commented on August 22, 2024

Hi,

Sorry to add a new comment but you need to reopen the issue.

As mentioned in the issue linked with electron repository, this issue is caused by apparmor's default policy, which lacks a specific profile in the /etc/apparmor.d/ directory.

Mattermost installation need to add a profile in /etc/apparmor.d/ directory.

Here is an exemple from Matrix Element app:

# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"

abi <abi/4.0>,
include <tunables/global>

profile element-desktop /opt/Element/element-desktop flags=(unconfined) {
  userns,

# Site-specific additions and overrides. See local/README for details.
  include if exists <local/element-desktop>
}

from desktop.

devinbinnie avatar devinbinnie commented on August 22, 2024

Going to open this as HW as we probably won't get to work on this internally anytime soon. If anyone is open to making changes to get this working (perhaps writing a script to drop the profile where it needs to be) I can help guide/merge the changes :)

from desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.