[PATCH 51/59] CRED: Wrap task credential accesses in the IPv6 protocol

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Howells
Date: Wednesday, August 27, 2008 - 6:50 am

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: netdev@vger.kernel.org
---

 net/ipv6/ip6_flowlabel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c
index 37a4e77..bd3c7b9 100644
--- a/net/ipv6/ip6_flowlabel.c
+++ b/net/ipv6/ip6_flowlabel.c
@@ -388,7 +388,7 @@ fl_create(struct net *net, struct in6_flowlabel_req *freq, char __user *optval,
 		fl->owner = current->pid;
 		break;
 	case IPV6_FL_S_USER:
-		fl->owner = current->euid;
+		fl->owner = current_euid();
 		break;
 	default:
 		err = -EINVAL;

--
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 51/59] CRED: Wrap task credential accesses in the I ..., David Howells, (Wed Aug 27, 6:50 am)
Re: [PATCH 00/59] Introduce credentials, David Howells, (Wed Aug 27, 7:24 am)
Re: [PATCH 00/59] Introduce credentials, Alan Cox, (Wed Aug 27, 9:39 am)
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)