Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 5 Sep 2012 16:33:54 +0400
From: gremlin@...mlin.ru
To: owl-dev@...ts.openwall.com
Subject: kernel 2.6.32 OpenVZ patch: error building w/o NFS and RPC

Very stupid bug, most likely should be reported to upstream...

.diff attached


-- 
Alexey V. Vissarionov aka Gremlin from Kremlin
<gremlin  gremlin  ru>
GPG key ID: 0xEF3B1FA8, keyserver: hkp://subkeys.pgp.net
GPG key fingerprint: 8832 FE9F A791 F796 8AC9 6E4E 909D AC45 EF3B 1FA8

diff -pruN linux-2.6.32.orig/include/linux/ve_nfs.h linux-2.6.32/include/linux/ve_nfs.h
--- linux-2.6.32.orig/include/linux/ve_nfs.h	2012-08-28 15:43:31 +0400
+++ linux-2.6.32/include/linux/ve_nfs.h	2012-09-05 16:17:42 +0400
@@ -66,6 +66,7 @@ struct ve_nlm_data {
 #define NLM_CTX_FIELD(arg)	(get_exec_env()->nlm_data->_##arg)
 #define NFS_CTX_FIELD(arg)	(get_exec_env()->nfs_data->_##arg)
 
+#if defined(CONFIG_SUNRPC) || defined(CONFIG_SUNRPC_MODULE)
 static inline void ve_rpc_data_init(void)
 {
 	atomic_set(&get_exec_env()->rpc_data->_users, 1);
@@ -93,7 +94,9 @@ static inline void ve_rpc_data_put(struc
 	}
 	(void)set_exec_env(curr_ve);
 }
+#endif
 
+#if defined(CONFIG_NFS_FS) || defined(CONFIG_NFS_FS_MODULE)
 static inline void ve_nfs_data_init(struct ve_nfs_data *data)
 {
 	atomic_set(&data->_users, 1);
@@ -122,6 +125,7 @@ static inline void ve_nfs_data_put(struc
 	}
 	(void)set_exec_env(curr_ve);
 }
+#endif
 
 #else /* CONFIG_VE */
 


[ CONTENT OF TYPE application/pgp-signature SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ