-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlay: introduce openssh modifications to disable permission checking
Disable openssh's ~/.ssh/config permission checking. It's too pedantic that does not work with FHS-shim on NixOS. - Also removes the hack in home-manager configuration. Link: nix-community/home-manager#322
- Loading branch information
Showing
4 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ let | |
in | ||
(lib.composeManyExtensions [ | ||
(import ./chromium.nix) | ||
(import ./openssh) | ||
]) | ||
final | ||
prev |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
Disable "bad permission" checking in openssh. | ||
*/ | ||
final: prev: { | ||
openssh = prev.openssh.overrideAttrs (old: { | ||
patches = (old.patches or [ ]) ++ [ ./no-check-permission.patch ]; | ||
doCheck = false; | ||
}); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/readconf.h b/readconf.h | ||
index ded13c9..94f489e 100644 | ||
--- a/readconf.h | ||
+++ b/readconf.h | ||
@@ -203,7 +203,7 @@ typedef struct { | ||
#define SESSION_TYPE_SUBSYSTEM 1 | ||
#define SESSION_TYPE_DEFAULT 2 | ||
|
||
-#define SSHCONF_CHECKPERM 1 /* check permissions on config file */ | ||
+#define SSHCONF_CHECKPERM 0 /* check permissions on config file */ | ||
#define SSHCONF_USERCONF 2 /* user provided config file not system */ | ||
#define SSHCONF_FINAL 4 /* Final pass over config, after canon. */ | ||
#define SSHCONF_NEVERMATCH 8 /* Match/Host never matches; internal only */ |