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.


> 
> 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];
> 

Reply via email to