[svn] commit: r1246 - /trunk/src/bin/cmdctl/Makefile.am

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Mar 9 18:03:27 UTC 2010


Author: jreed
Date: Tue Mar  9 18:03:27 2010
New Revision: 1246

Log:
Add a install-data-local target to remove group and other
read permissions from the private password and RSA key files.

Also add a TODO comment -- note that these files are overwritten
so this needs to be fixed -- treated as configuration files not
data files.
M    Makefile.am

Modified:
    trunk/src/bin/cmdctl/Makefile.am

Modified: trunk/src/bin/cmdctl/Makefile.am
==============================================================================
--- trunk/src/bin/cmdctl/Makefile.am (original)
+++ trunk/src/bin/cmdctl/Makefile.am Tue Mar  9 18:03:27 2010
@@ -3,6 +3,7 @@
 pkglibexec_SCRIPTS = b10-cmdctl
 
 b10_cmdctldir = $(DESTDIR)$(pkgdatadir)
+# TODO: this is dangerous -- will overwrite!
 b10_cmdctl_DATA = passwd.csv b10-cmdctl.pem
 
 CLEANFILES=	b10-cmdctl
@@ -12,3 +13,7 @@
 b10-cmdctl: cmdctl.py
 	$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" cmdctl.py >$@
 	chmod a+x $@
+
+install-data-local:
+	chmod go-rwx $(DESTDIR)$(pkgdatadir)/passwd.csv
+	chmod go-rwx $(DESTDIR)$(pkgdatadir)/b10-cmdctl.pem




More information about the bind10-changes mailing list