-
Notifications
You must be signed in to change notification settings - Fork 101
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
Remove bitcoin, clightning, electrs, liquid user home directory #159
Remove bitcoin, clightning, electrs, liquid user home directory #159
Conversation
This breaks the test. I don't think this attack vector is serious, but I'm glad to see uneeded options removed, so ACK for the remaining changes. |
725c28e
to
4c3ba44
Compare
I agree, but no home directory means no home directory level persistence. We should also continue to remove unneeded options, and simplify nix-bitcoin as much as possible.
Upon restarting my clightning service, it also broke my installation. I was able to fix clightning by specifying I applied the same measure to lnd, let's see if that also fixes it. |
Lnd is still failing:
Could you try to run the tests before committing?
To avoid GC'ing the result, run them like this:
|
I'm getting error
Which dependencies do I need for your tests? |
You need KVM. |
4c3ba44
to
663969c
Compare
LND seems to not work without a home directory. I exempted it from this PR. |
Could you add a comment in |
663969c
to
da5a232
Compare
Comment added to |
da5a232
to
159f551
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 159f551
Closes #53
Combined with the fact that AFAICT you can't login with
bitcoin
,clightning
,electrs
,liquid
users, this should completely eliminate the possibility of an attacker placing something similar to a.bashrc
file into the users home which is then executed every time the user logs in.For example:
The rest of the system should be protected with
ProtectHome=true
andProtectSystem=full
Tested with
nixops deploy
on NixOS nix-bitcoin node