File named-direct-proc-mount.diff of Package bind.import4843

Index: bind-9.7.2P3/vendor-files/init/named
===================================================================
--- bind-9.7.2P3.orig/vendor-files/init/named	2010-12-09 16:17:51.000000000 +0100
+++ bind-9.7.2P3/vendor-files/init/named	2010-12-09 16:19:55.060044775 +0100
@@ -183,8 +183,7 @@
 	# mount /proc for multicore CPUs (bnc#470828)
         if [ ! -e "${CHROOT_PREFIX}/proc/meminfo" ]; then
             mkdir -p "${CHROOT_PREFIX}/proc"
-            mount --bind /proc "${CHROOT_PREFIX}/proc" 2>/dev/null
-            mount -o remount,ro,nosuid,nodev ${CHROOT_PREFIX}/proc 2>/dev/null
+            mount -tproc -oro,nosuid,nodev,noexec proc ${CHROOT_PREFIX}/proc 2>/dev/null
         fi;
 
         ###########################