1 --- linux-2.6.33/scripts/mod/modpost.c~ 2010-02-24 19:52:17.000000000 +0100
2 +++ linux-2.6.33/scripts/mod/modpost.c 2010-03-07 14:26:47.242168558 +0100
7 -#include "../../include/generated/autoconf.h"
8 +// PLD architectures don't use CONFIG_SYMBOL_PREFIX
9 +//#include "../../include/generated/autoconf.h"
10 #include "../../include/linux/license.h"
12 /* Some toolchains use a `_' prefix for all user symbols. */
14 --- linux-3.0/scripts/kconfig/lxdialog/check-lxdialog.sh~ 2011-07-22 04:17:23.000000000 +0200
15 +++ linux-3.0/scripts/kconfig/lxdialog/check-lxdialog.sh 2011-08-25 21:26:04.799150642 +0200
17 $cc -print-file-name=lib${lib}.${ext} | grep -q /
20 + for libt in tinfow tinfo ; do
21 + $cc -print-file-name=lib${libt}.${ext} | grep -q /
22 + if [ $? -eq 0 ]; then
29 From 069d5ac9ae0d271903cc4607890616418118379a Mon Sep 17 00:00:00 2001
30 From: "Eric W. Biederman" <ebiederm@xmission.com>
31 Date: Fri, 30 Sep 2016 11:28:05 -0500
32 Subject: autofs: Fix automounts by using current_real_cred()->uid
34 Seth Forshee reports that in 4.8-rcN some automounts are failing
35 because the requesting the automount changed.
37 The relevant call path is:
44 In autofs4_wait wq_uid and wq_gid are set to current_uid() and
45 current_gid respectively. With follow_automount now overriding creds
46 uid that we export to userspace changes and that breaks existing
49 To remove the regression set wq_uid and wq_gid from
50 current_real_cred()->uid and current_real_cred()->gid respectively.
51 This restores the current behavior as current->real_cred is identical
52 to current->cred except when override creds are used.
54 Cc: stable@vger.kernel.org
55 Fixes: aeaa4a79ff6a ("fs: Call d_automount with the filesystems creds")
56 Reported-by: Seth Forshee <seth.forshee@canonical.com>
57 Tested-by: Seth Forshee <seth.forshee@canonical.com>
58 Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
60 fs/autofs4/waitq.c | 4 ++--
61 1 file changed, 2 insertions(+), 2 deletions(-)
63 diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
64 index 431fd7e..e44271d 100644
65 --- a/fs/autofs4/waitq.c
66 +++ b/fs/autofs4/waitq.c
67 @@ -431,8 +431,8 @@ int autofs4_wait(struct autofs_sb_info *sbi,
68 memcpy(&wq->name, &qstr, sizeof(struct qstr));
69 wq->dev = autofs4_get_dev(sbi);
70 wq->ino = autofs4_get_ino(sbi);
71 - wq->uid = current_uid();
72 - wq->gid = current_gid();
73 + wq->uid = current_real_cred()->uid;
74 + wq->gid = current_real_cred()->gid;
77 wq->status = -EINTR; /* Status return if interrupted */