Skip to content

Apps that add no-new-privileges (a hardening option) are asked to "Reach into the server's system" #524

Closed

Description

@nixfred

What happens

appPermissions() in omarchyd/apps.mjs (line ~206) treats every security_opt entry as a request for the system permission:

for (const o of s.security_opt ?? []) add('system', `security_opt: ${o}`)

But security_opt: ["no-new-privileges:true"] is the standard way to make a container safer: it stops processes inside from gaining privileges. The install review then lists the app under "Reach into the server's system" ("It can see or talk to parts of the server outside its container ... Monitoring tools and smart-home hubs sometimes need this."), and apps.install refuses to proceed until the owner ticks that permission ("Installing needs your permission: reach into the server’s system.").

So a hardened app is shown as more dangerous than an ordinary one, and the owner is taught to approve a scary-sounding permission for a harmless option. Options that really do loosen the sandbox (seccomp=unconfined, apparmor=unconfined, label=disable) are the ones that should be flagged.

How to reproduce

Through omarchyd with a fake run and a store app whose compose file is:

services:
  web:
    image: x
    security_opt:
      - no-new-privileges:true

apps.installReview returns one permission, id: "system", what: ["security_opt: no-new-privileges:true"], and apps.install without grant is refused with the message above. The same can be seen with appPermissions() directly:

node --input-type=module -e "
import {appPermissions} from './omarchyd/apps.mjs'
console.log(JSON.stringify(appPermissions('services:\n a:\n  image: x\n  security_opt:\n   - no-new-privileges:true\n', {home: '/home/u'})))"

Expected: no permission needed for no-new-privileges:true (or the bare no-new-privileges).

Suggested fix

Only add system for security_opt values that disable confinement (*=unconfined, label=disable, label:disable, systempaths=unconfined), and ignore no-new-privileges.

Environment

Omarchy Server main (6aa7f7d, 0.9.52), Node 26.

Activity

  1. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #526, #342, #525, #527, #133, #102, #777, #129, #239, #243, #236, #233, #232, #142, #242, and #443 share the app store with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thanks @nixfred. no-new-privileges is no longer treated as reaching into the server. An option that turns confinement off, including seccomp:unconfined and apparmor:unconfined, still is. This ships in #876.

    🤖 Generated with Grok 4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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