~ubuntu-branches/ubuntu/lucid/apparmor/lucid-proposed

« back to all changes in this revision

Viewing changes to kernel-patches/2.6.26/fix-d_namespace_path-tmp-root.diff

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-11-02 13:33:15 UTC
  • mfrom: (99.1.11 maverick-proposed)
  • Revision ID: james.westby@ubuntu.com-20101102133315-jcil3cqqiz6lr0km
Tags: 2.5.1-0ubuntu0.10.04.1
* Backport 2.5.1-0ubuntu0.10.10.1 from maverick for userspace tools to work
  with newer kernels (LP: #660077)
  NOTE: user-tmp now uses 'owner' match, so non-default profiles will have
  to be adjusted when 2 separately confined applications that both use the
  user-tmp abstraction depend on being able to cooperatively share files
  with each other in /tmp or /var/tmp.
* remove the following patches (features not appropriate for SRU):
  - 0002-add-chromium-browser.patch
  - 0003-local-includes.patch
  - 0004-ubuntu-abstractions-updates.patch
* debian/rules (this makes it the same as what was shipped in 10.04 LTS
  release):
  - don't ship aa-update-browser and its man page (requires
    0004-ubuntu-abstractions-updates.patch)
  - don't ship apparmor.d/local/ (requires 0003-local-includes.patch)
  - don't use dh_apparmor (not in Ubuntu 10.04 LTS)
  - don't ship chromium profile
* remove debian/profiles/chromium-browser
* remove debian/aa-update-browser*
* debian/apparmor-profiles.postinst: revert to that in lucid release
  (requires dh_apparmor and 0002-add-chromium-browser.patch)
* remove debian/apparmor-profiles.postrm: doesn't make sense without
  0002-add-chromium-browser.patch
* debian/control:
  - revert Build-Depends on debhelper (>= 5)
  - revert Standards-Version to 3.8.4
  - revert Vcs-Bzr
  - use Conflicts/Replaces version that was in Ubuntu 10.04 LTS
* debian/patches/0011-lucid-compat-dbus.patch: move /var/lib/dbus/machine-id
  back into dbus, since profiles on 10.04 LTS expect it there
* debian/patches/0012-lucid-compat-kde.patch: add kde4-config to kde
  abstraction, since the firefox profile on Ubuntu 10.04 LTS expects it to
  be there

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
---
2
 
 fs/namespace.c |    5 +++--
3
 
 1 file changed, 3 insertions(+), 2 deletions(-)
4
 
 
5
 
--- a/fs/namespace.c
6
 
+++ b/fs/namespace.c
7
 
@@ -2355,7 +2355,7 @@ void __put_mnt_ns(struct mnt_namespace *
8
 
 char *d_namespace_path(struct dentry *dentry, struct vfsmount *vfsmnt,
9
 
                       char *buf, int buflen)
10
 
 {
11
 
-       struct path root, ns_root = { };
12
 
+       struct path root, tmp, ns_root = { };
13
 
        struct path path = { .mnt = vfsmnt, .dentry = dentry };
14
 
        char *res;
15
 
 
16
 
@@ -2369,7 +2369,8 @@ char *d_namespace_path(struct dentry *de
17
 
        if (ns_root.mnt)
18
 
                ns_root.dentry = dget(ns_root.mnt->mnt_root);
19
 
        spin_unlock(&vfsmount_lock);
20
 
-       res = __d_path(&path, &ns_root, buf, buflen,
21
 
+       tmp = ns_root;
22
 
+       res = __d_path(&path, &tmp, buf, buflen,
23
 
                       D_PATH_FAIL_DELETED | D_PATH_DISCONNECT);
24
 
        path_put(&root);
25
 
        path_put(&ns_root);