Git Product home page Git Product logo

Comments (10)

aripollak avatar aripollak commented on September 26, 2024 1

The fix for this, similar to bitwarden/clients#5153, is to create a new file in /etc/apparmor.d/superproductivity with the contents:

# 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 superproductivity /path/to/superproductivity flags=(unconfined) {
  userns,

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

For Electron-based flatpak apps (like Signal Desktop), it looks like things just work because there's already a /etc/apparmor.d/flatpak file with similar contents.

from super-productivity.

aripollak avatar aripollak commented on September 26, 2024 1

I think the file from the example above could be included in .rpms and .debs to fix the problem on systems with either of those packages installed. But that wouldn't help the AppImage without some manual intervention by the user, since a file needs to be placed in /etc/apparmor.d. It might be naturally fixed in a snap and/or flatpak, but I'm not sure since I moved away from the snap due to #1443.

from super-productivity.

aripollak avatar aripollak commented on September 26, 2024 1

I don't know of all the implications of running without the sandbox, but I certainly don't think that should happen automatically for an app that retrieves data from possibly untrusted sources (you probably don't want the app to end up on https://no-sandbox.io/). The solution above should work fine for .debs and .rpms, but not automatically for AppImage. Unfortunately I don't know of a safe way to make it work automatically for everyone.

from super-productivity.

github-actions avatar github-actions commented on September 26, 2024

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

from super-productivity.

aripollak avatar aripollak commented on September 26, 2024

From journalctl, I get this:

kernel: audit: type=1400 audit(1716499214.956:213): apparmor="AUDIT" operation="userns_create" class="namespace" info="Userns create - transitioning profile" profile="unconfined" pid=35734 comm="superproductivi" requested="userns_create" target="unprivileged_userns"
kernel: audit: type=1400 audit(1716499214.957:214): apparmor="DENIED" operation="capable" class="cap" profile="unprivileged_userns" pid=35741 comm="superproductivi" capability=21  capname="sys_admin"

Related discussion in Bitwarden: bitwarden/clients#5153

from super-productivity.

johannesjo avatar johannesjo commented on September 26, 2024

Does this error also occur if you start the app with superproductivity --no-sandbox?

from super-productivity.

aripollak avatar aripollak commented on September 26, 2024

It does work with --no-sandbox, but that doesn't seem ideal since it does talk to stuff on the Internet.

from super-productivity.

petre-dimo avatar petre-dimo commented on September 26, 2024

I have a similar problem with ubuntu 24.04. Osmo organizer process starts and is active but no graphic interface appears on the screen. It worked very well under ubuntu 22.04 and previous versions. After reinstalling the application, the interface stays invisible wile the process is active and can be identified with "pidof" and killed. Same behaviour if starting from terminal, with or without --no-sandof. Have you any solution ?

from super-productivity.

johannesjo avatar johannesjo commented on September 26, 2024

Not sure what is the best way around this issue from our side. Help would be very welcome!

from super-productivity.

johannesjo avatar johannesjo commented on September 26, 2024

Another approach might be to re-start the app with no-sandbox if the start fails once. We then could display a warning at the start and link to a page which explains the situation and how to fix it. What do you think @aripollak? Could this work? This way we don't have to do some special handling for every different platform. And I think most problematic for Super Productivity as a whole is when new users can't start the app without fiddling around.

from super-productivity.

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.