Loganaden Velvindron <lo...@elandsys.com> writes:
         
         > On Mon, Apr 21, 2014 at 04:20:03PM +0200, Fritjof Bornebusch wrote:
         >> Hi tech@,
         >> 
         >> here is a small diff, that checks if the ~/.ssh/id_ed25519 private 
key has the right permissions.
         >
         > That's seems good to me.
         
         But then the .ssh/id* entries aren't sorted anymore!  Otherwise ok.
         
Thanks for the advise.

Fritjof

         >
         >> 
         >> Fritjof
         >> 
         >> Index: security
         >> ===================================================================
         >> RCS file: /cvs/src/libexec/security/security,v
         >> retrieving revision 1.24
         >> diff -u -p -r1.24 security
         >> --- security    23 Mar 2014 22:08:15 -0000      1.24
         >> +++ security    20 Apr 2014 22:41:57 -0000
         >> @@ -387,7 +387,7 @@ sub check_dot_readable {
         >>         foreach my $f (qw(
         >>             .netrc .rhosts .gnupg/secring.gpg .gnupg/random_seed
         >>             .pgp/secring.pgp .shosts .ssh/identity .ssh/id_dsa 
.ssh/id_ecdsa
         >> -           .ssh/id_rsa 
         >> +           .ssh/id_rsa .ssh/id_ed25519
         >>         )) {
         >>                 next unless -e "$home/$f";
         >>                 my ($mode, $fuid) = (stat(_))[2,4];
         >> 
         >

Index: security
===================================================================
RCS file: /cvs/src/libexec/security/security,v
retrieving revision 1.24
diff -u -p -r1.24 security
--- security    23 Mar 2014 22:08:15 -0000      1.24
+++ security    21 Apr 2014 16:13:40 -0000
@@ -387,7 +387,7 @@ sub check_dot_readable {
        foreach my $f (qw(
            .netrc .rhosts .gnupg/secring.gpg .gnupg/random_seed
            .pgp/secring.pgp .shosts .ssh/identity .ssh/id_dsa .ssh/id_ecdsa
-           .ssh/id_rsa 
+           .ssh/id_ed25519 .ssh/id_rsa
        )) {
                next unless -e "$home/$f";
                my ($mode, $fuid) = (stat(_))[2,4];
         
         -- 
         jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 
E7EE
         

Reply via email to