From: Marc Fiuczynski Date: Wed, 2 Mar 2005 21:05:44 +0000 (+0000) Subject: Added CONFIG_VSERVER_FILESHARING option that is used to disable the X-Git-Tag: before-fedora-2_6_18-1_2239_FC5-vs2_0_2_2-rc6-merge~246 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7fc318e370f055410213be5c59043e1867558cda;p=linux-2.6.git Added CONFIG_VSERVER_FILESHARING option that is used to disable the hidden file support that vserver 1.9.3.17 introduced, which broke proper. --- diff --git a/fs/namei.c b/fs/namei.c index 8a716a83b..bccfcccf1 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -228,9 +228,6 @@ int generic_permission(struct inode *inode, int mask, return -EACCES; } -#warning MEF: need to make CONFIG_VSERVER_FILESHARING a Kconfig option -#define CONFIG_VSERVER_FILESHARING 1 - static inline int xid_permission(struct inode *inode, int mask, struct nameidata *nd) { if (inode->i_xid == 0) diff --git a/kernel/vserver/Kconfig b/kernel/vserver/Kconfig index 22f8f2315..0651158a2 100644 --- a/kernel/vserver/Kconfig +++ b/kernel/vserver/Kconfig @@ -4,6 +4,15 @@ menu "Linux VServer" +config VSERVER_FILESHARING + bool "(PLANETLAB) Disable Hidden File Module" + default y + help + This retains the module that when a vserver can + see a file, it can also stat and read it. The + assumption is that chroot() works and vservers + are contained that way. + config VSERVER_LEGACY bool "Enable Legacy Kernel API" default y