[SCM] Samba Shared Repository - branch v3-6-test updated
Karolin Seeger
kseeger at samba.org
Wed Jul 11 11:27:38 MDT 2012
The branch, v3-6-test has been updated
via ceed322 Fix bug #9034 - Typo in set_re_uid() call when USE_SETRESUID selected in configure.
from 3abaa9d s3:vfs_gpfs: be less verbose in get/set_xattr functions
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test
- Log -----------------------------------------------------------------
commit ceed322622b46be3745b32a5f6a02e634bfe1789
Author: Jeremy Allison <jra at samba.org>
Date: Tue Jul 10 21:13:03 2012 -0700
Fix bug #9034 - Typo in set_re_uid() call when USE_SETRESUID selected in configure.
Previous code only set the real euid, not the effective one. This is not a security issue
as this is *only* used in the quota code, and only between code that brackets
it with save_re_uid()/restore_re_uid(), Also this is not used on most platforms
(we use USE_SETREUID by preference) but it's better to have this right.
-----------------------------------------------------------------------
Summary of changes:
source3/lib/util_sec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c
index d7984ac..b90a6f9 100644
--- a/source3/lib/util_sec.c
+++ b/source3/lib/util_sec.c
@@ -334,7 +334,7 @@ int set_re_uid(void)
uid_t uid = geteuid();
#if USE_SETRESUID
- setresuid(geteuid(), -1, -1);
+ setresuid(uid, uid, -1);
#endif
#if USE_SETREUID
--
Samba Shared Repository
More information about the samba-cvs
mailing list