login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
27
Re: [PATCH 45/59] CRED: Wrap task credential accesses in the UDF filesystem
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jan Kara
Subject:
Re: [PATCH 45/59] CRED: Wrap task credential accesses in the UDF filesystem
Date: Wednesday, August 27, 2008 - 7:44 am
On Wed 27-08-08 14:49:34, David Howells wrote:
quoted text
> Wrap access to task credentials so that they can be separated more easily from > the task_struct during the introduction of COW creds. > > Change most current->(|e|s|fs)[ug]id to current_(|e|s|fs)[ug]id(). > > Change some task->e?[ug]id to task_e?[ug]id(). In some places it makes more > sense to use RCU directly rather than a convenient wrapper; these will be > addressed by later patches. > > Signed-off-by: David Howells <dhowells@redhat.com> > Reviewed-by: James Morris <jmorris@namei.org> > Acked-by: Serge Hallyn <serue@us.ibm.com> > Cc: Jan Kara <jack@suse.cz>
Acked-by: Jan Kara <jack@suse.cz>
quoted text
> --- > > fs/udf/ialloc.c | 4 ++-- > fs/udf/namei.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > > diff --git a/fs/udf/ialloc.c b/fs/udf/ialloc.c > index a4f2b3c..31fc842 100644 > --- a/fs/udf/ialloc.c > +++ b/fs/udf/ialloc.c > @@ -126,13 +126,13 @@ struct inode *udf_new_inode(struct inode *dir, int mode, int *err) > } > mutex_unlock(&sbi->s_alloc_mutex); > inode->i_mode = mode; > - inode->i_uid = current->fsuid; > + inode->i_uid = current_fsuid(); > if (dir->i_mode & S_ISGID) { > inode->i_gid = dir->i_gid; > if (S_ISDIR(mode)) > mode |= S_ISGID; > } else { > - inode->i_gid = current->fsgid; > + inode->i_gid = current_fsgid(); > } > > iinfo->i_location.logicalBlockNum = block; > diff --git a/fs/udf/namei.c b/fs/udf/namei.c > index 7578fae..869c982 100644 > --- a/fs/udf/namei.c > +++ b/fs/udf/namei.c > @@ -605,7 +605,7 @@ static int udf_mknod(struct inode *dir, struct dentry *dentry, int mode, > goto out; > > iinfo = UDF_I(inode); > - inode->i_uid = current->fsuid; > + inode->i_uid = current_fsuid(); > init_special_inode(inode, mode, rdev); > fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); > if (!fi) { >
-- Jan Kara <jack@suse.cz> SUSE Labs, CR --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [PATCH 00/59] Introduce credentials
, Alan Cox
, (Wed Aug 27, 6:33 am)
[PATCH 00/59] Introduce credentials
, David Howells
, (Wed Aug 27, 6:45 am)
[PATCH 01/59] CRED: Wrap task credential accesses in the I ...
, David Howells
, (Wed Aug 27, 6:45 am)
[PATCH 02/59] CRED: Wrap task credential accesses in the M ...
, David Howells
, (Wed Aug 27, 6:45 am)
[PATCH 03/59] CRED: Wrap task credential accesses in the P ...
, David Howells
, (Wed Aug 27, 6:45 am)
[PATCH 04/59] CRED: Wrap task credential accesses in the P ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 05/59] CRED: Wrap task credential accesses in the S ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 06/59] CRED: Wrap task credential accesses in the x ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 07/59] CRED: Wrap task credential accesses in the b ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 08/59] CRED: Wrap task credential accesses in the t ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 09/59] CRED: Wrap task credential accesses in the D ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 10/59] CRED: Wrap task credential accesses in the I ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 11/59] CRED: Wrap task credential accesses in video ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 12/59] CRED: Wrap task credential accesses in the n ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 13/59] CRED: Wrap task credential accesses in the U ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 14/59] CRED: Wrap task credential accesses in 9P200 ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 15/59] CRED: Wrap task credential accesses in the A ...
, David Howells
, (Wed Aug 27, 6:46 am)
[PATCH 16/59] CRED: Wrap task credential accesses in the a ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 17/59] CRED: Wrap task credential accesses in the a ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 18/59] CRED: Wrap task credential accesses in the B ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 19/59] CRED: Wrap task credential accesses in the C ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 20/59] CRED: Wrap task credential accesses in the C ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 21/59] CRED: Wrap task credential accesses in the d ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 22/59] CRED: Wrap task credential accesses in the e ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 23/59] CRED: Wrap task credential accesses in the E ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 24/59] CRED: Wrap task credential accesses in the E ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 25/59] CRED: Wrap task credential accesses in the E ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 26/59] CRED: Wrap task credential accesses in the F ...
, David Howells
, (Wed Aug 27, 6:47 am)
[PATCH 27/59] CRED: Wrap task credential accesses in the F ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 28/59] CRED: Wrap task credential accesses in the G ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 29/59] CRED: Wrap task credential accesses in the H ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 30/59] CRED: Wrap task credential accesses in the H ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 31/59] CRED: Wrap task credential accesses in the H ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 32/59] CRED: Wrap task credential accesses in the h ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 33/59] CRED: Wrap task credential accesses in the J ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 34/59] CRED: Wrap task credential accesses in the J ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 35/59] CRED: Wrap task credential accesses in the M ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 36/59] CRED: Wrap task credential accesses in the N ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 37/59] CRED: Wrap task credential accesses in the N ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 38/59] CRED: Wrap task credential accesses in the O ...
, David Howells
, (Wed Aug 27, 6:48 am)
[PATCH 39/59] CRED: Wrap task credential accesses in the O ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 40/59] CRED: Wrap task credential accesses in the R ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 41/59] CRED: Wrap task credential accesses in the R ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 42/59] CRED: Wrap task credential accesses in the S ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 43/59] CRED: Wrap task credential accesses in the S ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 44/59] CRED: Wrap task credential accesses in the U ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 45/59] CRED: Wrap task credential accesses in the U ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 46/59] CRED: Wrap task credential accesses in the U ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 47/59] CRED: Wrap task credential accesses in the X ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 48/59] CRED: Wrap task credential accesses in the f ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 49/59] CRED: Wrap task credential accesses in the S ...
, David Howells
, (Wed Aug 27, 6:49 am)
[PATCH 50/59] CRED: Wrap task credential accesses in the A ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 51/59] CRED: Wrap task credential accesses in the I ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 52/59] CRED: Wrap task credential accesses in the n ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 53/59] CRED: Wrap task credential accesses in the R ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 54/59] CRED: Wrap task credential accesses in the S ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 55/59] CRED: Wrap task credential accesses in the U ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 56/59] CRED: Wrap task credential accesses in the n ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 57/59] CRED: Wrap task credential accesses in the k ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 58/59] CRED: Wrap task credential accesses in the c ...
, David Howells
, (Wed Aug 27, 6:50 am)
[PATCH 59/59] CRED: Wrap task credential accesses in the c ...
, David Howells
, (Wed Aug 27, 6:50 am)
Re: [PATCH 26/59] CRED: Wrap task credential accesses in t ...
, OGAWA Hirofumi
, (Wed Aug 27, 7:12 am)
Re: [PATCH 00/59] Introduce credentials
, David Howells
, (Wed Aug 27, 7:24 am)
Re: [PATCH 34/59] CRED: Wrap task credential accesses in t ...
, Dave Kleikamp
, (Wed Aug 27, 7:31 am)
Re: [PATCH 45/59] CRED: Wrap task credential accesses in t ...
, Jan Kara
, (Wed Aug 27, 7:44 am)
Re: [PATCH 01/59] CRED: Wrap task credential accesses in t ...
, Artem Bityutskiy
, (Wed Aug 27, 7:55 am)
Re: [PATCH 01/59] CRED: Wrap task credential accesses in t ...
, David Howells
, (Wed Aug 27, 8:24 am)
Re: [PATCH 00/59] Introduce credentials
, Alan Cox
, (Wed Aug 27, 9:39 am)
Re: [PATCH 10/59] CRED: Wrap task credential accesses in t ...
, Karsten Keil
, (Wed Aug 27, 10:51 am)
Re: [PATCH 03/59] CRED: Wrap task credential accesses in t ...
, Kyle McMartin
, (Wed Aug 27, 3:19 pm)
Re: [PATCH 38/59] CRED: Wrap task credential accesses in t ...
, Mark Fasheh
, (Wed Aug 27, 4:04 pm)
Re: [PATCH 01/59] CRED: Wrap task credential accesses in t ...
, Stephen Rothwell
, (Wed Aug 27, 4:21 pm)
Re: [PATCH 04/59] CRED: Wrap task credential accesses in t ...
, Benjamin Herrenschmidt
, (Wed Aug 27, 4:45 pm)
Re: [PATCH 00/59] Introduce credentials
, David Howells
, (Thu Aug 28, 2:19 am)
Re: [PATCH 00/59] Introduce credentials
, Alan Cox
, (Thu Aug 28, 2:45 am)
Re: [PATCH 14/59] CRED: Wrap task credential accesses in 9 ...
, Eric Van Hensbergen
, (Thu Aug 28, 10:59 am)
Re: [PATCH 00/59] Introduce credentials
, Paul E. McKenney
, (Thu Aug 28, 1:28 pm)
Re: [PATCH 11/59] CRED: Wrap task credential accesses in v ...
, Mauro Carvalho Chehab
, (Fri Aug 29, 3:32 pm)
Re: [PATCH 09/59] CRED: Wrap task credential accesses in t ...
, Dave Airlie
, (Mon Sep 1, 6:03 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List