feat: use tmpfiles.d for setup and temp dir#15
Open
HastD wants to merge 1 commit intosecureblue:mainfrom
Open
Conversation
HastD
added a commit
to HastD/secureblue
that referenced
this pull request
Feb 11, 2026
With secureblue/homebrew#15, Homebrew setup uses tmpfiles.d instead of a systemd service unit to create the `/home/linuxbrew/.linuxbrew` directory. The `ujust set-brew` script needs to be changed to match.
* Replace `brew-setup.service` with tmpfiles.d configuration that copies `/usr/share/homebrew/.linuxbrew` to `/home/linuxbrew/.linuxbrew`. * Move Homebrew temporary directory to `/var/tmp/homebrew` and manage this directory with tmpfiles.d. This will make the Homebrew installation easier to sandbox in the future as it only needs access `/var/tmp/homebrew` instead of all of `/var/tmp`.
HastD
added a commit
to HastD/secureblue
that referenced
this pull request
Feb 13, 2026
With secureblue/homebrew#15, Homebrew setup uses tmpfiles.d instead of a systemd service unit to create the `/home/linuxbrew/.linuxbrew` directory. The `ujust set-brew` script needs to be changed to match. To ensure the Homebrew installation is *not* recreated for users who have opted out with `ujust set-brew off`, we override this tmpfiles.d config file by default by creating an empty `/etc/tmpfiles.d/homebrew.conf`, and add a systemd service `brew-setup-migration.service` that removes this override if the stamp `/etc/.linuxbrew` used by the old Homebrew setup method is present.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
brew-setup.servicewith tmpfiles.d configuration that copies/usr/share/homebrew/.linuxbrewto/home/linuxbrew/.linuxbrew./var/tmp/homebrewand manage this directory with tmpfiles.d. This will make the Homebrew installation easier to sandbox in the future as it only needs access/var/tmp/homebrewinstead of all of/var/tmp.Note, the change to Homebrew setup will require a corresponding change to the secureblue ujust script for disabling Homebrew.