Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to replace symlinks with bind mounts #5521

Open
DADA30000 opened this issue Jun 10, 2024 · 2 comments
Open

Add an option to replace symlinks with bind mounts #5521

DADA30000 opened this issue Jun 10, 2024 · 2 comments
Assignees

Comments

@DADA30000
Copy link

DADA30000 commented Jun 10, 2024

Description

This might sound dumb, but it would be nice to have an option that makes symlinks created by home-manager owned by root (like hyprland.conf symlink), so they could not be deleted/replaced with other config file for additional security, at least when using home-manager as a NixOS module

@DADA30000
Copy link
Author

Oh and also set 775 permission on them

@DADA30000
Copy link
Author

Oh, after some research I found out that symlinks don't have any permissions, they are attached to directory permissions, maybe replace symlinks with mount --bind?

@DADA30000 DADA30000 changed the title Make symlinks owned by root Add an option to replace symlinks with bind mounts Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants