diff options
author | trasz <trasz@FreeBSD.org> | 2010-07-17 15:45:20 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2010-07-17 15:45:20 +0000 |
commit | 1d5b5bc65ce9d4d3ac3fabc0fca0c43c30b471e8 (patch) | |
tree | 5ccc68ebe3c4307c6b452093241e589039f27aac | |
parent | f613d35061dd61535d3952c232cf25803198a13c (diff) | |
download | FreeBSD-src-1d5b5bc65ce9d4d3ac3fabc0fca0c43c30b471e8.zip FreeBSD-src-1d5b5bc65ce9d4d3ac3fabc0fca0c43c30b471e8.tar.gz |
Remove updating process count by unionfs. It serves no purpose, unionfs just
needs root credentials for a moment.
-rw-r--r-- | sys/fs/unionfs/union_subr.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c index 0791d2e..7aba881 100644 --- a/sys/fs/unionfs/union_subr.c +++ b/sys/fs/unionfs/union_subr.c @@ -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 *ump, struct vnode *udvp, /* 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); |