diff -NurpP --minimal linux-2.6.36-vs2.3.0.36.35/fs/namei.c linux-2.6.36-vs2.3.0.36.36/fs/namei.c --- linux-2.6.36-vs2.3.0.36.35/fs/namei.c 2010-10-21 17:45:49.000000000 +0200 +++ linux-2.6.36-vs2.3.0.36.36/fs/namei.c 2010-10-21 22:09:46.000000000 +0200 @@ -193,6 +193,9 @@ static int __dx_permission(const struct if (S_ISDIR(inode->i_mode) || vx_check((xid_t)inode->i_tag, VS_IDENT | VS_WATCH_P)) return 0; + + /* just pretend we didn't find anything */ + return -ENOENT; } else if (inode->i_sb->s_magic == PROC_SUPER_MAGIC) { struct proc_dir_entry *de = PDE(inode); @@ -238,7 +241,11 @@ int dx_permission(const struct inode *in { int ret = __dx_permission(inode, mask); if (unlikely(ret)) { - vxwprintk_task(1, "denied %x access to %s:%p[#%d,%lu]", +#ifndef CONFIG_VSERVER_WARN_DEVPTS + if (inode->i_sb->s_magic != DEVPTS_SUPER_MAGIC) +#endif + vxwprintk_task(1, + "denied [0x%x] access to inode %s:%p[#%d,%lu]", mask, inode->i_sb->s_id, inode, inode->i_tag, inode->i_ino); } @@ -848,10 +855,14 @@ done: return 0; hidden: - vxwprintk_task(1, +#ifndef CONFIG_VSERVER_WARN_DEVPTS + if (inode->i_sb->s_magic != DEVPTS_SUPER_MAGIC) +#endif + vxwprintk_task(1, "did lookup hidden %s:%p[#%d,%lu] " VS_Q("%s/%.*s") ".", inode->i_sb->s_id, inode, inode->i_tag, inode->i_ino, vxd_path(&nd->path), name->len, name->name); + dput(dentry); return -ENOENT; diff -NurpP --minimal linux-2.6.36-vs2.3.0.36.35/kernel/vserver/Kconfig linux-2.6.36-vs2.3.0.36.36/kernel/vserver/Kconfig --- linux-2.6.36-vs2.3.0.36.35/kernel/vserver/Kconfig 2010-10-21 19:04:20.000000000 +0200 +++ linux-2.6.36-vs2.3.0.36.36/kernel/vserver/Kconfig 2010-10-21 21:49:28.000000000 +0200 @@ -177,6 +177,15 @@ config VSERVER_WARN resource shortage. It is generally considered to be a good idea to have that enabled. +config VSERVER_WARN_DEVPTS + bool "VServer DevPTS Warnings" + depends on VSERVER_WARN + default y + help + This enables DevPTS related warnings, issued when a + process inside a context tries to lookup or access + a dynamic pts from the host or a different context. + config VSERVER_DEBUG bool "VServer Debugging Code" default n