Index: /trunk/Config.kmk
===================================================================
--- /trunk/Config.kmk	(revision 38092)
+++ /trunk/Config.kmk	(revision 38093)
@@ -2588,4 +2588,5 @@
  TEMPLATE_VBoxRc_SYSSUFF             = .gc
  TEMPLATE_VBoxRc_BLD_TRG_ARCH        = x86
+ TEMPLATE_VBoxRc_MODE                = a+r,u+w
 
  ifeq ($(VBOX_LDR_FMT32),pe)
@@ -2663,4 +2664,5 @@
  TEMPLATE_VBoxRcExe_DEFS = $(filter-out IPRT_NO_CRT RT_WITH_NOCRT_ALIASES,$(TEMPLATE_VBoxRc_DEFS))
  TEMPLATE_VBoxRcExe_INCS = $(NO_SUCH_VARIABLE)
+ TEMPLATE_VBoxRcExe_MODE = $(NO_SUCH_VARIABLE)
 
  ifeq ($(VBOX_LDR_FMT32),pe)
@@ -2721,4 +2723,5 @@
 TEMPLATE_VBoxR0_INCS                = $(PATH_ROOT)/include/iprt/nocrt
 TEMPLATE_VBoxR0_SYSSUFF             = .r0
+TEMPLATE_VBoxR0_MODE                = a+r,u+w
 
 ifeq ($(VBOX_LDR_FMT),pe)
Index: /trunk/src/VBox/Additions/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Additions/Makefile.kmk	(revision 38092)
+++ /trunk/src/VBox/Additions/Makefile.kmk	(revision 38093)
@@ -84,26 +84,28 @@
 
   $$(LnxAddIso-scripts_0_OUTDIR)/runasroot.sh: \
-	$(PATH_SUB_CURRENT)/../Installer/linux/runasroot.sh \
-	$(PATH_SUB_CURRENT)/../Installer/linux/sh-utils.sh \
-	| $$(dir $$@)
+		$(PATH_SUB_CURRENT)/../Installer/linux/runasroot.sh \
+		$(PATH_SUB_CURRENT)/../Installer/linux/sh-utils.sh \
+		| $$(dir $$@)
 	$(QUIET)$(SED) \
-	    -e '/#include sh-utils.sh/ {' \
-	    -e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \
-	    -e 'd' \
-	    -e '}' \
-	    --output $@ \
-	    $<
+		-e '/#include sh-utils.sh/ {' \
+		-e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \
+		-e 'd' \
+		-e '}' \
+		--output $@ \
+		$<
+	$(QUIET)$(CHMOD) a+rx,u+w $@
 
   $$(LnxAddIso-scripts_0_OUTDIR)/autorun.sh: \
-	$(PATH_SUB_CURRENT)/linux/installer/autorun.sh \
-	$(PATH_SUB_CURRENT)/../Installer/linux/sh-utils.sh \
-	| $$(dir $$@)
+		$(PATH_SUB_CURRENT)/linux/installer/autorun.sh \
+		$(PATH_SUB_CURRENT)/../Installer/linux/sh-utils.sh \
+		| $$(dir $$@)
 	$(QUIET)$(SED) \
-	    -e '/#include sh-utils.sh/ {' \
-	    -e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \
-	    -e 'd' \
-	    -e '}' \
-	    --output $@ \
-	    $<
+		-e '/#include sh-utils.sh/ {' \
+		-e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \
+		-e 'd' \
+		-e '}' \
+		--output $@ \
+		$<
+	$(QUIET)$(CHMOD) a+rx,u+w $@
  endif # KBUILD_TARGET == linux
  ifeq ($(KBUILD_TARGET),win)
Index: /trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk	(revision 38092)
+++ /trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk	(revision 38093)
@@ -187,4 +187,5 @@
 		-e "s;_OLDMODULES_;vboxguest vboxadd vboxsf vboxvfs vboxvideo;g" \
 		--output $@ $<
+	$(QUIET)$(CHMOD) a+rx,u+w $@
 
  # scripts.
Index: /trunk/src/VBox/HostDrivers/Makefile.kmk
===================================================================
--- /trunk/src/VBox/HostDrivers/Makefile.kmk	(revision 38092)
+++ /trunk/src/VBox/HostDrivers/Makefile.kmk	(revision 38093)
@@ -97,4 +97,5 @@
 		-e "s;_OLDMODULES_;vboxhost vboxdrv vboxnetflt vboxnetadp;g" \
 		--output $@ $<
+	$(QUIET)$(CHMOD) a+rx,u+w $@
 
  endif
Index: /trunk/src/VBox/Installer/common/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Installer/common/Makefile.kmk	(revision 38092)
+++ /trunk/src/VBox/Installer/common/Makefile.kmk	(revision 38093)
@@ -30,4 +30,5 @@
 
 VBox-python-glue-installer_INST = $(INST_SDK)/installer/
+VBox-python-glue-installer_MODE = a+r,u+w
 VBox-python-glue-installer_SOURCES = vboxapisetup.py
 
Index: /trunk/src/VBox/Installer/common/vboxapisetup.py
===================================================================
--- /trunk/src/VBox/Installer/common/vboxapisetup.py	(revision 38092)
+++ /trunk/src/VBox/Installer/common/vboxapisetup.py	(revision 38093)
@@ -1,2 +1,3 @@
+#
 # Copyright (C) 2009 Oracle Corporation
 #
Index: /trunk/src/VBox/Installer/linux/testcase/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Installer/linux/testcase/Makefile.kmk	(revision 38092)
+++ /trunk/src/VBox/Installer/linux/testcase/Makefile.kmk	(revision 38093)
@@ -27,14 +27,15 @@
 
 $$(tstInstallerLinux_0_OUTDIR)/tstInstallerLinux.sh: \
-	$(PATH_SUB_CURRENT)/tstInstallerLinux.sh \
-	$(PATH_SUB_CURRENT)/../installer-utils.sh \
-	| $$(dir $$@)
+		$(PATH_SUB_CURRENT)/tstInstallerLinux.sh \
+		$(PATH_SUB_CURRENT)/../installer-utils.sh \
+		| $$(dir $$@)
 	$(QUIET)$(SED) \
-	-e '/#include installer-utils.sh/ {' \
-	-e "r $(PATH_ROOT)/src/VBox/Installer/linux/installer-utils.sh" \
-	-e 'd' \
-	-e '}' \
-	--output $@ \
-	$<
+		-e '/#include installer-utils.sh/ {' \
+		-e "r $(PATH_ROOT)/src/VBox/Installer/linux/installer-utils.sh" \
+		-e 'd' \
+		-e '}' \
+		--output $@ \
+		$<
+	$(QUIET)$(CHMOD) a+rx,u+w $@
 
 include	$(KBUILD_PATH)/subfooter.kmk
Index: /trunk/src/VBox/Main/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Main/Makefile.kmk	(revision 38092)
+++ /trunk/src/VBox/Main/Makefile.kmk	(revision 38093)
@@ -161,17 +161,21 @@
 INSTALLS += VBox-main-xidl
 VBox-main-xidl_INST = $(INST_SDK)bindings/
+VBox-main-xidl_MODE = a+r,u+w
 VBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
 
 ifdef VBOX_WITH_PYTHON
-
-# or to some subdir?
-VBOX_PYTHON_CONSTANTS = $(PATH_TARGET)/VirtualBox_constants.py
-
 INSTALLS += VBox-python-glue
-VBox-python-glue_INST = $(INST_SDK)installer/
-VBox-python-glue_SOURCES = glue/vboxapi.py=>vboxapi/__init__.py  \
-                           $(VBOX_PYTHON_CONSTANTS)=>vboxapi/VirtualBox_constants.py
-
-$(VBOX_PYTHON_CONSTANTS):  $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
+VBox-python-glue_INST = $(INST_SDK)installer/vboxapi/
+VBox-python-glue_MODE = a+r,u+w
+VBox-python-glue_SOURCES = \
+	glue/vboxapi.py \
+        $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
+VBox-python-glue_CLEAN = \
+        $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
+
+$$(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py:  \
+		$(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl \
+		$(VBOX_XIDL_FILE) \
+		| $$(dir $$@)
 	$(call MSG_TOOL,xsltproc,Python constants,$<,$@)
 	$(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
@@ -762,4 +766,5 @@
 INSTALLS.win += VBoxMain-com-inst
 VBoxMain-com-inst_INST = $(INST_BIN)
+VBoxMain-com-inst_MODE = a+r,u+w
 VBoxMain-com-inst_SOURCES = src-all/win/comregister.cmd
 
@@ -865,5 +870,4 @@
 
 ifdef VBOX_WITH_JMSCOM
-INSTALLS += VBoxJMscom-inst-jar
 
 #
@@ -877,5 +881,7 @@
 VBOX_JACOB_DIR     := $(PATH_ROOT)/src/libs/jacob-1.15-M3
 
+INSTALLS += VBoxJMscom-inst-jar
 VBoxJMscom-inst-jar_INST = $(INST_SDK)bindings/mscom/java/
+VBoxJMscom-inst-jar_MODE = a+r,u+w
 VBoxJMscom-inst-jar_SOURCES = \
 	$(VBOX_JMSCOM_JAR)
@@ -924,5 +930,5 @@
 INSTALLS += javagluesample
 javagluesample_INST = $(INST_SDK)bindings/glue/java/
-javagluesample_MODE = a+rx,u+w
+javagluesample_MODE = a+r,u+w
 javagluesample_SOURCES = \
 	$(VBOX_PATH_MAIN_SRC)/glue/tests/TestVBox.java=>TestVBox.java \
@@ -940,2 +946,3 @@
 	$(call MSG_TOOL,xsltproc,Test Settings Converter,$<,$<.test)
 	$(QUIET)$(VBOX_XSLTPROC) -o $<.test xml/SettingsConverter.xsl $<
+
Index: /trunk/src/VBox/Main/webservice/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Main/webservice/Makefile.kmk	(revision 38092)
+++ /trunk/src/VBox/Main/webservice/Makefile.kmk	(revision 38093)
@@ -312,4 +312,5 @@
 
 VBoxJWs-inst-jar_INST = $(INST_SDK)bindings/webservice/java/jax-ws/
+VBoxJWs-inst-jar_MODE = a+r,u+w
 VBoxJWs-inst-jar_SOURCES = \
 	$(VBOX_JWS_JAR)
Index: /trunk/src/libs/xpcom18a4/java/Makefile.kmk
===================================================================
--- /trunk/src/libs/xpcom18a4/java/Makefile.kmk	(revision 38092)
+++ /trunk/src/libs/xpcom18a4/java/Makefile.kmk	(revision 38093)
@@ -90,4 +90,5 @@
 
 VBoxJXpcom-inst-jar_INST = $(INST_SDK)bindings/xpcom/java/
+VBoxJXpcom-inst-jar_MODE = a+r,u+w
 VBoxJXpcom-inst-jar_SOURCES = \
 	$(VBOX_JXPCOM_JAR)
Index: /trunk/src/libs/xpcom18a4/python/Makefile.kmk
===================================================================
--- /trunk/src/libs/xpcom18a4/python/Makefile.kmk	(revision 38092)
+++ /trunk/src/libs/xpcom18a4/python/Makefile.kmk	(revision 38093)
@@ -171,4 +171,5 @@
 INSTALLS += VBoxPython-inst-py-xpcom
 VBoxPython-inst-py-xpcom_INST = $(INST_SDK)bindings/xpcom/python/xpcom/
+VBoxPython-inst-py-xpcom_MODE = a+r,u+w
 VBoxPython-inst-py-xpcom_SOURCES = \
 	vboxxpcom.py \
