Author: waldi
Date: Wed Oct 11 22:07:30 2006
New Revision: 7599

Added:
   
dists/trunk/linux-2.6/debian/patches/features/all/vserver/bindmount-dev.patch   
(contents, props changed)
   dists/trunk/linux-2.6/debian/patches/series/3-extra
Modified:
   dists/trunk/linux-2.6/debian/changelog

Log:
* debian/changelog: Update.
* debian/patches/features/all/vserver/bindmount-dev.patch: Add.
* debian/patches/series/3-extra: Add all/vserver/bindmount-dev.patch.


Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog      (original)
+++ dists/trunk/linux-2.6/debian/changelog      Wed Oct 11 22:07:30 2006
@@ -4,7 +4,8 @@
   * Fix home of patch apply script.
   * Unify CPUSET option. (closes: #391931)
   * Support xen version 3.0.3-1 and 3.0.3-rc1.
-  * Add AHCI suspend support. 
+  * Add AHCI suspend support.
+  * Add patch to support bindmount without nodev on vserver.
 
   [ Steve Langasek ]
   * [alpha] restore alpha-prctl.patch, which keeps disappearing every time
@@ -35,7 +36,7 @@
   * [powerpc] Added AMD74xx driver module to the powerpc64 flavour
     (Closes: #391861).
 
- -- Bastian Blank <[EMAIL PROTECTED]>  Tue, 10 Oct 2006 16:40:26 +0200
+ -- Bastian Blank <[EMAIL PROTECTED]>  Thu, 12 Oct 2006 00:06:53 +0200
 
 linux-2.6 (2.6.18-2) unstable; urgency=low
 

Added: 
dists/trunk/linux-2.6/debian/patches/features/all/vserver/bindmount-dev.patch
==============================================================================
--- (empty file)
+++ 
dists/trunk/linux-2.6/debian/patches/features/all/vserver/bindmount-dev.patch   
    Wed Oct 11 22:07:30 2006
@@ -0,0 +1,42 @@
+diff -ur source-s390-vserver.orig/fs/namespace.c 
source-s390-vserver/fs/namespace.c
+--- source-s390-vserver.orig/fs/namespace.c    2006-08-12 16:51:51.000000000 
+0200
++++ source-s390-vserver/fs/namespace.c 2006-08-12 16:53:26.000000000 +0200
+@@ -986,6 +986,9 @@
+       if (!mnt)
+               goto out;
+ 
++      if (!capable(CAP_SYS_ADMIN) && (old_nd.mnt->mnt_flags & MNT_NODEV))
++              mnt_flags |= MNT_NODEV;
++
+       mnt->mnt_flags = mnt_flags;
+       if (flags & MS_XID) {
+               mnt->mnt_xid = xid;
+@@ -1028,6 +1031,9 @@
+       if (nd->dentry != nd->mnt->mnt_root)
+               return -EINVAL;
+ 
++      if (!capable(CAP_SYS_ADMIN))
++              mnt_flags |= MNT_NODEV;
++
+       down_write(&sb->s_umount);
+       err = do_remount_sb(sb, flags, data, 0);
+       if (!err)
+@@ -1136,6 +1142,9 @@
+       if (!vx_capable(CAP_SYS_ADMIN, VXC_SECURE_MOUNT))
+               return -EPERM;
+ 
++      if (!capable(CAP_SYS_ADMIN))
++              mnt_flags |= MNT_NODEV;
++
+       mnt = do_kern_mount(type, flags, name, data);
+       if (IS_ERR(mnt))
+               return PTR_ERR(mnt);
+@@ -1409,8 +1418,6 @@
+       if (flags & MS_NODIRATIME)
+               mnt_flags |= MNT_NODIRATIME;
+ 
+-      if (!capable(CAP_SYS_ADMIN))
+-              mnt_flags |= MNT_NODEV;
+       flags &= ~(MS_NOSUID | MS_NOEXEC | MS_NODEV | MS_ACTIVE |
+                  MS_NOATIME | MS_NODIRATIME);
+ 

Added: dists/trunk/linux-2.6/debian/patches/series/3-extra
==============================================================================
--- (empty file)
+++ dists/trunk/linux-2.6/debian/patches/series/3-extra Wed Oct 11 22:07:30 2006
@@ -0,0 +1 @@
++ features/all/vserver/bindmount-dev.patch *_vserver *_xen-vserver

_______________________________________________
Kernel-svn-changes mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes

Reply via email to