Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2010 15:45:20 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210194 - head/sys/fs/unionfs
Message-ID:  <201007171545.o6HFjKex070603@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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