Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/mail etc: Fix permissions of various editable config...



details:   https://anonhg.NetBSD.org/src/rev/f749f4801f4d
branches:  trunk
changeset: 369757:f749f4801f4d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Aug 30 13:40:37 2022 +0000

description:
etc: Fix permissions of various editable configuration files.

This way they match the mtree and make sense and don't cause editors
to ask to override read-only files when editing them.

Exception: Not sure /etc/bluetooth/protocols makes as much sense to
edit, but the mtree says 644, so if you want to change it, make sure
to change it in both places -- Makefile and mtree.

XXX pullup-8
XXX pullup-9

diffstat:

 crypto/external/bsd/openssh/bin/Makefile |  4 +++-
 etc/bluetooth/Makefile                   |  3 ++-
 etc/iscsi/Makefile                       |  3 ++-
 external/ibm-public/postfix/etc/Makefile |  4 +++-
 usr.bin/mail/Makefile                    |  3 ++-
 5 files changed, 12 insertions(+), 5 deletions(-)

diffs (82 lines):

diff -r e947eca246e5 -r f749f4801f4d crypto/external/bsd/openssh/bin/Makefile
--- a/crypto/external/bsd/openssh/bin/Makefile  Tue Aug 30 13:14:48 2022 +0000
+++ b/crypto/external/bsd/openssh/bin/Makefile  Tue Aug 30 13:40:37 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2019/06/01 13:21:27 jmcneill Exp $
+#      $NetBSD: Makefile,v 1.5 2022/08/30 13:40:37 riastradh Exp $
 
 .include <bsd.own.mk>
 
@@ -11,7 +11,9 @@
 .MADE: moduli
 CONFIGFILES=   ssh_config sshd_config moduli
 FILESDIR=      /etc/ssh
+FILESMODE=     644
 FILESDIR_moduli=/etc
+FILESMODE_moduli=444
 
 .include <bsd.files.mk>
 .include <bsd.subdir.mk>
diff -r e947eca246e5 -r f749f4801f4d etc/bluetooth/Makefile
--- a/etc/bluetooth/Makefile    Tue Aug 30 13:14:48 2022 +0000
+++ b/etc/bluetooth/Makefile    Tue Aug 30 13:40:37 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2008/04/15 11:17:47 plunky Exp $
+# $NetBSD: Makefile,v 1.6 2022/08/30 13:40:37 riastradh Exp $
 
 CONFIGFILES=   btattach.conf btdevctl.conf hosts protocols
 FILESDIR=      /etc/bluetooth
+FILESMODE=     644
 
 .include <bsd.prog.mk>
diff -r e947eca246e5 -r f749f4801f4d etc/iscsi/Makefile
--- a/etc/iscsi/Makefile        Tue Aug 30 13:14:48 2022 +0000
+++ b/etc/iscsi/Makefile        Tue Aug 30 13:40:37 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2006/06/24 05:14:01 mrg Exp $
+#      $NetBSD: Makefile,v 1.4 2022/08/30 13:40:37 riastradh Exp $
 
 .include <bsd.own.mk>
 
@@ -7,6 +7,7 @@
 CONFIGFILES=           auths targets
 FILESDIR=              /etc/iscsi
 FILESMODE_auths=       0600
+FILESMODE_targets=     0644
 
 .endif
 
diff -r e947eca246e5 -r f749f4801f4d external/ibm-public/postfix/etc/Makefile
--- a/external/ibm-public/postfix/etc/Makefile  Tue Aug 30 13:14:48 2022 +0000
+++ b/external/ibm-public/postfix/etc/Makefile  Tue Aug 30 13:40:37 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2009/06/25 18:21:51 tron Exp $
+#      $NetBSD: Makefile,v 1.2 2022/08/30 13:40:37 riastradh Exp $
 
 .include <bsd.own.mk>
 
@@ -14,5 +14,7 @@
 # needed by default.
 #
 CONFIGFILES=   main.cf master.cf README
+FILESMODE=     644
+FILESMODE_README=444
 
 .include <bsd.prog.mk>
diff -r e947eca246e5 -r f749f4801f4d usr.bin/mail/Makefile
--- a/usr.bin/mail/Makefile     Tue Aug 30 13:14:48 2022 +0000
+++ b/usr.bin/mail/Makefile     Tue Aug 30 13:40:37 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.40 2019/12/17 19:12:50 christos Exp $
+#      $NetBSD: Makefile,v 1.41 2022/08/30 13:40:37 riastradh Exp $
 #      @(#)Makefile    8.3 (Berkeley) 4/20/95
 
 .include <bsd.own.mk>
@@ -75,6 +75,7 @@
 
 CONFIGFILES=           mail.rc
 FILESDIR_mail.rc=      /etc
+FILESMODE_mail.rc=     644
 
 COPTS.format.c+= -Wno-format-nonliteral
 COPTS.fio.c+=  ${GCC_NO_FORMAT_TRUNCATION}



Home | Main Index | Thread Index | Old Index