[Devel] Re: [RFC] [PATCH 1/4] uid_ns: introduce inode uid check helper

Cedric Le Goater clg at fr.ibm.com
Thu Nov 9 12:05:43 PST 2006


> @@ -184,7 +184,7 @@ int generic_permission(struct inode *ino
>  {
>  	umode_t			mode = inode->i_mode;
>  
> -	if (current->fsuid == inode->i_uid)
> +	if (inode_task_same_uid(inode, current))
>  		mode >>= 6;
>  	else {

Looking at the source of the above code in the email, I get :


@@ -184,7 +184,7 @@ int generic_permission(struct inode *ino
 {
 	umode_t			mode =3D inode->i_mode;
 =

-	if (current->fsuid =3D=3D inode->i_uid)
+	if (inode_task_same_uid(inode, current))
 		mode >>=3D 6;
 	else {



Where are those ugly '=3D' coming from ? is it my mailer or do you
get them also ?

thanks,

C.
_______________________________________________
Containers mailing list
Containers at lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers




More information about the Devel mailing list