Browse Source

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


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1246 e5f2f494-b856-4b98-b285-d166d9295462

Jeremy C. Reed 15 years ago
parent
commit
a42470f802
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/bin/cmdctl/Makefile.am

+ 5 - 0
src/bin/cmdctl/Makefile.am

@@ -3,6 +3,7 @@ pkglibexecdir = $(libexecdir)/@PACKAGE@
 pkglibexec_SCRIPTS = b10-cmdctl
 pkglibexec_SCRIPTS = b10-cmdctl
 
 
 b10_cmdctldir = $(DESTDIR)$(pkgdatadir)
 b10_cmdctldir = $(DESTDIR)$(pkgdatadir)
+# TODO: this is dangerous -- will overwrite!
 b10_cmdctl_DATA = passwd.csv b10-cmdctl.pem
 b10_cmdctl_DATA = passwd.csv b10-cmdctl.pem
 
 
 CLEANFILES=	b10-cmdctl
 CLEANFILES=	b10-cmdctl
@@ -12,3 +13,7 @@ CLEANFILES=	b10-cmdctl
 b10-cmdctl: cmdctl.py
 b10-cmdctl: cmdctl.py
 	$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" cmdctl.py >$@
 	$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" cmdctl.py >$@
 	chmod a+x $@
 	chmod a+x $@
+
+install-data-local:
+	chmod go-rwx $(DESTDIR)$(pkgdatadir)/passwd.csv
+	chmod go-rwx $(DESTDIR)$(pkgdatadir)/b10-cmdctl.pem