Skip to content

biboumi: restrict access to relevant directories - #62703

Open
balejk wants to merge 1 commit into
void-linux:masterfrom
balejk:biboumi-tightening
Open

balejk wants to merge 1 commit into
void-linux:masterfrom
balejk:biboumi-tightening

Conversation

@balejk

@balejk balejk commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Adjust the permissions and ownership of the configuration directory to
prevent the contents from being world readable as the configuration file
stored within by default contains the component secret and remove the
world read bit from the home directory as that's where the database is
being looked for by default.

Cc: @AnInternetTroll


Testing the changes

  • I tested the changes in this PR: YES

Local build testing

  • I built this PR locally for my native architecture, (x86_64)

Comment thread srcpkgs/biboumi/template Outdated
conf_files="/etc/biboumi/biboumi.cfg"
make_dirs="/var/lib/biboumi/ 0755 _biboumi _biboumi"
make_dirs="/var/lib/biboumi/ 0750 _biboumi _biboumi
/etc/biboumi 0750 _biboumi _biboumi"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Config files generally shouldn't be writable by less privileged daemons imho.

@balejk

balejk commented Sep 25, 2026 via email

Copy link
Copy Markdown
Contributor Author

@Duncaen

Duncaen commented Sep 25, 2026

Copy link
Copy Markdown
Member

This is the containing directory, not the file itself. The file is only writable by root.

Its still has perms to drop in config files. Owner should probably be root, group should be read only for the less privileged group.

Adjust the permissions and ownership of the configuration directory to
prevent the contents from being world readable as the configuration file
stored within by default contains the component secret and remove the
world read bit from the home directory as that's where the database is
being looked for by default.
@balejk

balejk commented Sep 25, 2026 via email

Copy link
Copy Markdown
Contributor Author

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants