git: rc.d/wg: Warn if config file does not have mode 0400 or 0600

Aaron LI aly at crater.dragonflybsd.org
Fri Feb 21 21:12:54 PST 2025


commit ebf24f468e4eb920df3eeb06437e7fca73e8c15f
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Feb 22 13:09:28 2025 +0800

    rc.d/wg: Warn if config file does not have mode 0400 or 0600
    
    Help protect from leaking private keys in the config files.
    The wg.conf.5 man page has bee updated accordingly.
    
    Later I'll convert this warning to an error.

Summary of changes:
 etc/rc.d/wg              | 5 +++++
 share/man/man5/wg.conf.5 | 8 +++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ebf24f468e4eb920df3eeb06437e7fca73e8c15f


-- 
DragonFly BSD source repository


More information about the Commits mailing list