Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2010 23:03:32 +0200
From:      Andreas Tobler <andreast-list@fgznet.ch>
To:        Edward Tomasz Napierala <trasz@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: svn commit: r210194 - head/sys/fs/unionfs
Message-ID:  <4C421AA4.3050304@fgznet.ch>
In-Reply-To: <201007171545.o6HFjKex070603@svn.freebsd.org>
References:  <201007171545.o6HFjKex070603@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 17.07.10 17:45, Edward Tomasz Napierala wrote:
> Author: trasz
> Date: Sat Jul 17 15:45:20 2010
> New Revision: 210194
> URL: http://svn.freebsd.org/changeset/base/210194
>
> Log:
>    Remove updating process count by unionfs.  It serves no purpose, unionfs just
>    needs root credentials for a moment.
>
> Modified:
>    head/sys/fs/unionfs/union_subr.c
>
> Modified: head/sys/fs/unionfs/union_subr.c
> ==============================================================================
> --- head/sys/fs/unionfs/union_subr.c	Sat Jul 17 13:34:01 2010	(r210193)
> +++ head/sys/fs/unionfs/union_subr.c	Sat Jul 17 15:45:20 2010	(r210194)
> @@ -50,7 +50,6 @@
>   #include<sys/fcntl.h>
>   #include<sys/filedesc.h>
>   #include<sys/stat.h>
> -#include<sys/resourcevar.h>
>
>   #include<security/mac/mac_framework.h>
>
> @@ -775,7 +774,6 @@ unionfs_mkshadowdir(struct unionfs_mount
>   	/* Authority change to root */
>   	rootinfo = uifind((uid_t)0);
>   	cred = crdup(cnp->cn_cred);
> -	chgproccnt(cred->cr_ruidinfo, 1, 0);
>   	change_euid(cred, rootinfo);
>   	change_ruid(cred, rootinfo);
>   	change_svuid(cred, (uid_t)0);
> @@ -825,7 +823,6 @@ unionfs_mkshadowdir_free_out:
>
>   unionfs_mkshadowdir_abort:
>   	cnp->cn_cred = credbk;
> -	chgproccnt(cred->cr_ruidinfo, -1, 0);
>   	crfree(cred);
>
>   	return (error);
> _______________________________________________
> svn-src-head@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org"
>
>
cc1: warnings being treated as errors
/export/devel/fbsd/head/src/sys/modules/unionfs/../../fs/unionfs/union_subr.c: 
In function 'unionfs_mkshadowdir':
/export/devel/fbsd/head/src/sys/modules/unionfs/../../fs/unionfs/union_subr.c:775: 
warning: implicit declaration of function 'uifind'
/export/devel/fbsd/head/src/sys/modules/unionfs/../../fs/unionfs/union_subr.c:775: 
warning: nested extern declaration of 'uifind'
/export/devel/fbsd/head/src/sys/modules/unionfs/../../fs/unionfs/union_subr.c:775: 
warning: assignment makes pointer from integer without a cast
/export/devel/fbsd/head/src/sys/modules/unionfs/../../fs/unionfs/union_subr.c:780: 
warning: implicit declaration of function 'uifree'
/export/devel/fbsd/head/src/sys/modules/unionfs/../../fs/unionfs/union_subr.c:780: 
warning: nested extern declaration of 'uifree'

Hm, I'd like to include this one again:

[tc:fbsd/head/src] andreast% svn diff sys/fs/unionfs/union_subr.c
Index: sys/fs/unionfs/union_subr.c
===================================================================
--- sys/fs/unionfs/union_subr.c	(revision 210200)
+++ sys/fs/unionfs/union_subr.c	(working copy)
@@ -50,6 +50,7 @@
  #include <sys/fcntl.h>
  #include <sys/filedesc.h>
  #include <sys/stat.h>
+#include <sys/resourcevar.h>

  #include <security/mac/mac_framework.h>


Gruss,
Andreas




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C421AA4.3050304>