add /proc/partitions to vprocunhide-files list
S.Çağlar Onur [Wed, 19 Jan 2011 19:06:51 +0000 (14:06 -0500)]
util-vserver.spec
vprocunhide-files [new file with mode: 0644]

index 6808df7..7e969ec 100644 (file)
@@ -37,6 +37,7 @@ Group:                System Environment/Base
 URL:           http://savannah.nongnu.org/projects/util-vserver/
 Source0:       http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
 Source1:       fstab
+Source2:       vprocunhide-files
 BuildRoot:     %_tmppath/%name-%version-%release-root
 Requires:      init(%name)
 Requires:      %name-core = %version-%release
@@ -217,7 +218,8 @@ MANIFEST_CONFIG='%config' \
 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
 
-install -c -m 755 %{SOURCE1} %{buildroot}/%pkglibdir/defaults/fstab
+install -c -m 644 %{SOURCE1} %{buildroot}/%pkglibdir/defaults/fstab
+install -c -m 644 %{SOURCE2} %{buildroot}/%pkglibdir/defaults/vprocunhide-files
 
 %check
 %__make check
diff --git a/vprocunhide-files b/vprocunhide-files
new file mode 100644 (file)
index 0000000..a4f6e10
--- /dev/null
@@ -0,0 +1,35 @@
+/proc/net/
+-/proc/net/rpc/
+-/proc/net/ip_conntrack
+-/proc/net/ip_conntrack_expect
+-/proc/net/nf_conntrack
+-/proc/net/nf_conntrack_expect
+/proc/sys/
+-/proc/sys/debug/
+-/proc/sys/dev/
+/proc/sysvipc/
+/proc/tty/
+/proc/cpuinfo
+/proc/crypto
+/proc/devices
+/proc/execdomains
+/proc/filesystems
+/proc/interrupts
+/proc/iomem
+/proc/ioports
+/proc/kcore
+/proc/kmsg
+/proc/ksyms
+/proc/loadavg
+/proc/locks
+/proc/meminfo
+/proc/misc
+/proc/modules
+/proc/pci
+/proc/slabinfo
+/proc/stat
+/proc/swaps
+/proc/uptime
+-/proc/cmdline
+/proc/version
+/proc/partitions