3
26
Fork
You've already forked mere
1

profile: harden user-owned store paths during system activation #44

Merged
jhuntwork merged 1 commit from fix-perms into main 2026年04月01日 14:34:43 +02:00

When building a system profile as root, store paths installed by
non-root users (e.g. via mere dev build) were rejected with a
PermissionDenied error. Instead, harden them in place by calling
hardenStoreObject, which sets root ownership and read-only permissions.

Rename assertRootOwnedPackages to ensureRootOwnedPackages to reflect
the new behavior.

Fixes a regression where sudo mere install would fail if any
dependency in the generation was previously installed by a user.

When building a system profile as root, store paths installed by non-root users (e.g. via `mere dev build`) were rejected with a PermissionDenied error. Instead, harden them in place by calling hardenStoreObject, which sets root ownership and read-only permissions. Rename assertRootOwnedPackages to ensureRootOwnedPackages to reflect the new behavior. Fixes a regression where `sudo mere install` would fail if any dependency in the generation was previously installed by a user.
profile: harden user-owned store paths during system activation
All checks were successful
/ test (pull_request) Successful in 5m18s
8177411a16
When building a system profile as root, store paths installed by
non-root users (e.g. via `mere dev build`) were rejected with a
PermissionDenied error. Instead, harden them in place by calling
hardenStoreObject, which sets root ownership and read-only permissions.
Rename assertRootOwnedPackages to ensureRootOwnedPackages to reflect
the new behavior.
Fixes a regression where `sudo mere install` would fail if any
dependency in the generation was previously installed by a user.
jhuntwork deleted branch fix-perms 2026年04月01日 14:34:44 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
merelinux/mere!44
Reference in a new issue
merelinux/mere
No description provided.
Delete branch "fix-perms"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?