Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 188011 Details for
Bug 160065
sys-fs/aufs (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
2.6.29 patch
aufs-9999-compile-fix.patch (text/plain), 5.30 KB, created by
Rada
on 2009-04-11 18:46:35 UTC
(
hide
)
Description:
2.6.29 patch
Filename:
MIME Type:
Creator:
Rada
Created:
2009-04-11 18:46:35 UTC
Size:
5.30 KB
patch
obsolete
>diff --git a/fs/aufs/export.c b/fs/aufs/export.c >index 31d9aa2..8bab08a 100644 >--- a/fs/aufs/export.c >+++ b/fs/aufs/export.c >@@ -353,7 +353,7 @@ static struct dentry *au_lkup_by_ino(struct path *path, ino_t ino) > LKTRTrace("%.*s, i%lu\n", AuDLNPair(parent), (unsigned long )ino); > > path_get(path); >- file = dentry_open(parent, path->mnt, au_dir_roflags); >+ file = dentry_open(parent, path->mnt, au_dir_roflags, current_cred()); > dentry = (void *)file; > if (IS_ERR(file)) > goto out; >diff --git a/fs/aufs/file.c b/fs/aufs/file.c >index 6e26e63..9ee08f4 100644 >--- a/fs/aufs/file.c >+++ b/fs/aufs/file.c >@@ -99,7 +99,8 @@ struct file *au_h_open(struct dentry *dentry, aufs_bindex_t bindex, int flags, > if (unlikely(file && au_test_nfs(h_dentry->d_sb))) > h_file = au_h_intent(dentry, bindex, file); > if (!h_file) >- h_file = dentry_open(dget(h_dentry), mntget(br->br_mnt), flags); >+ h_file = dentry_open(dget(h_dentry), mntget(br->br_mnt), flags, >+ current_cred()); > > /* > * a dirty trick for handling FMODE_EXEC and deny_write_access(). >diff --git a/fs/aufs/inode.c b/fs/aufs/inode.c >index 6229cf2..29337ea 100644 >--- a/fs/aufs/inode.c >+++ b/fs/aufs/inode.c >@@ -404,7 +404,7 @@ int au_test_ro(struct super_block *sb, aufs_bindex_t bindex, > > int au_test_h_perm(struct inode *h_inode, int mask, int dlgt) > { >- if (!current->fsuid) >+ if (!current_fsuid()) > return 0; > /* todo: fake nameidata? */ > return vfsub_permission(h_inode, mask, NULL, dlgt); >diff --git a/fs/aufs/whout.c b/fs/aufs/whout.c >index 8c33c2c..c5cd672 100644 >--- a/fs/aufs/whout.c >+++ b/fs/aufs/whout.c >@@ -276,7 +276,7 @@ static int do_unlink_wh(struct au_hinode *hdir, struct inode *h_dir, > */ > vfsub_args_init(&vargs, &ign, dlgt, > (h_dir->i_mode & S_ISVTX) >- && wh_dentry->d_inode->i_uid != current->fsuid); >+ && wh_dentry->d_inode->i_uid != current_fsuid()); > vfsub_ign_hinode(&vargs, IN_DELETE, hdir); > err = vfsub_unlink(h_dir, wh_dentry, &vargs); > AuTraceErr(err); >@@ -591,7 +591,7 @@ static void reinit_br_wh(void *arg) > struct vfsub_args vargs; > > AuTraceEnter(); >- AuDebugOn(current->fsuid); >+ AuDebugOn(current_fsuid()); > > err = 0; > wbr = a->br->br_wbr; >diff --git a/fs/aufs/xino.c b/fs/aufs/xino.c >index beb57a8..dae058b 100644 >--- a/fs/aufs/xino.c >+++ b/fs/aufs/xino.c >@@ -623,7 +623,8 @@ struct file *au_xino_create2(struct super_block *sb, struct file *base_file, > goto out_dput; > } > file = dentry_open(dget(dentry), mntget(base_file->f_vfsmnt), >- O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE); >+ O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE, >+ current_cred()); > if (IS_ERR(file)) { > AuErr("%.*s open err %ld\n", AuLNPair(name), PTR_ERR(file)); > goto out_dput; >diff --git a/fs/aufs25/export.c b/fs/aufs25/export.c >index 31d9aa2..8bab08a 100644 >--- a/fs/aufs25/export.c >+++ b/fs/aufs25/export.c >@@ -353,7 +353,7 @@ static struct dentry *au_lkup_by_ino(struct path *path, ino_t ino) > LKTRTrace("%.*s, i%lu\n", AuDLNPair(parent), (unsigned long )ino); > > path_get(path); >- file = dentry_open(parent, path->mnt, au_dir_roflags); >+ file = dentry_open(parent, path->mnt, au_dir_roflags, current_cred()); > dentry = (void *)file; > if (IS_ERR(file)) > goto out; >diff --git a/fs/aufs25/file.c b/fs/aufs25/file.c >index 6e26e63..9ee08f4 100644 >--- a/fs/aufs25/file.c >+++ b/fs/aufs25/file.c >@@ -99,7 +99,8 @@ struct file *au_h_open(struct dentry *dentry, aufs_bindex_t bindex, int flags, > if (unlikely(file && au_test_nfs(h_dentry->d_sb))) > h_file = au_h_intent(dentry, bindex, file); > if (!h_file) >- h_file = dentry_open(dget(h_dentry), mntget(br->br_mnt), flags); >+ h_file = dentry_open(dget(h_dentry), mntget(br->br_mnt), flags, >+ current_cred()); > > /* > * a dirty trick for handling FMODE_EXEC and deny_write_access(). >diff --git a/fs/aufs25/inode.c b/fs/aufs25/inode.c >index 6229cf2..29337ea 100644 >--- a/fs/aufs25/inode.c >+++ b/fs/aufs25/inode.c >@@ -404,7 +404,7 @@ int au_test_ro(struct super_block *sb, aufs_bindex_t bindex, > > int au_test_h_perm(struct inode *h_inode, int mask, int dlgt) > { >- if (!current->fsuid) >+ if (!current_fsuid()) > return 0; > /* todo: fake nameidata? */ > return vfsub_permission(h_inode, mask, NULL, dlgt); >diff --git a/fs/aufs25/whout.c b/fs/aufs25/whout.c >index 8c33c2c..c5cd672 100644 >--- a/fs/aufs25/whout.c >+++ b/fs/aufs25/whout.c >@@ -276,7 +276,7 @@ static int do_unlink_wh(struct au_hinode *hdir, struct inode *h_dir, > */ > vfsub_args_init(&vargs, &ign, dlgt, > (h_dir->i_mode & S_ISVTX) >- && wh_dentry->d_inode->i_uid != current->fsuid); >+ && wh_dentry->d_inode->i_uid != current_fsuid()); > vfsub_ign_hinode(&vargs, IN_DELETE, hdir); > err = vfsub_unlink(h_dir, wh_dentry, &vargs); > AuTraceErr(err); >@@ -591,7 +591,7 @@ static void reinit_br_wh(void *arg) > struct vfsub_args vargs; > > AuTraceEnter(); >- AuDebugOn(current->fsuid); >+ AuDebugOn(current_fsuid()); > > err = 0; > wbr = a->br->br_wbr; >diff --git a/fs/aufs25/xino.c b/fs/aufs25/xino.c >index beb57a8..dae058b 100644 >--- a/fs/aufs25/xino.c >+++ b/fs/aufs25/xino.c >@@ -623,7 +623,8 @@ struct file *au_xino_create2(struct super_block *sb, struct file *base_file, > goto out_dput; > } > file = dentry_open(dget(dentry), mntget(base_file->f_vfsmnt), >- O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE); >+ O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE, >+ current_cred()); > if (IS_ERR(file)) { > AuErr("%.*s open err %ld\n", AuLNPair(name), PTR_ERR(file)); > goto out_dput;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 160065
:
109488
|
109937
|
116920
|
128385
|
160657
|
174878
|
174988
|
175011
|
175928
|
188010
| 188011