[Pkg-ossec-devel] [SCM] Git repository for pkg-ossec branch, debian, updated. 20e1db16d04181ea0167328fd1fb43860316492d

Jose Antonio Quevedo joseantonio.quevedo at gmail.com
Tue Jul 26 23:04:07 UTC 2011


The following commit has been merged in the debian branch:
commit d55a5966e78117364c0959f377aa218674c140af
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date:   Mon Jul 25 22:50:23 2011 +0200

    Modes for server directories, from InstallServer.sh

diff --git a/debian/rules b/debian/rules
index dd285b6..5a54d36 100755
--- a/debian/rules
+++ b/debian/rules
@@ -55,6 +55,20 @@ install-arch: build
 	cd debian/ossec-hids-server/var/ossec && ln -s bin ../../usr/lib/ossec/
 	cd debian/ossec-hids-server/var/ossec && ln -s etc ../../etc/ossec/
 	cd debian/ossec-hids-server/var/ossec && ln -s logs ../logs/ossec/
+	cd debian/ossec-hids-server/var/ossec && ln -s rules ../../etc/rules/
+	chmod -R 550 debian/ossec-hids-server/var/ossec
+	chmod 770 debian/ossec-hids-server/var/ossec/queue/alerts
+	chmod 770 debian/ossec-hids-server/var/ossec/queue/ossec
+	chmod 750 debian/ossec-hids-server/var/ossec/queue/fts
+	chmod 750 debian/ossec-hids-server/var/ossec/queue/syscheck
+	chmod 750 debian/ossec-hids-server/var/ossec/queue/rootcheck
+	chmod 750 debian/ossec-hids-server/var/ossec/queue/diff
+	chmod 755 debian/ossec-hids-server/var/ossec/queue/agent-info
+	chmod 755 debian/ossec-hids-server/var/ossec/queue/rids
+	chmod 755 debian/ossec-hids-server/var/ossec/queue/agentless
+	chmod 750 debian/ossec-hids-server/var/ossec/stats
+	chmod 750 debian/ossec-hids-server/var/logs/ossec
+	chmod -R 550 debian/ossec-hids-server/etc/
 # Agent files and directories
 	install -m 755 bin/ossec-agentd debian/ossec-hids-agent/usr/bin/
 	for file in agent-auth ossec-logcollector ossec-syscheckd ossec-execd \
@@ -65,6 +79,7 @@ install-arch: build
 	cd debian/ossec-hids-agent/var/ossec && ln -s bin ../../usr/lib/ossec/
 	cd debian/ossec-hids-agent/var/ossec && ln -s etc ../../etc/ossec/
 	cd debian/ossec-hids-agent/var/ossec && ln -s logs ../logs/ossec/
+	chmod 750 debian/ossec-hids-agent/var/logs/ossec
 
 install-indep: build-indep
 	dh_testdir

-- 
Git repository for pkg-ossec



More information about the Pkg-ossec-devel mailing list