Skip to content

Add apparmor profile #8635

Closed
Closed
@xmedeko

Description

@xmedeko
  • Electron-Builder Version: 25.1.8
  • Node Version: 22
  • Electron Version: 32.2.1
  • Electron Type (current, beta, nightly): current
  • Target: Linux

Ubuntu 24 installation requires AppArmor profile to be configured for the app, see

Solution is to detect OS with AppArmor and create a file in /etc/apparmor.d/<exe-name>:

# 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 <exe-name> "/opt/<install-path>/<exe-name>" flags=(unconfined) {
  userns,

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

Note: remove this file when the app is uninstalled.

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions