From d81e20653baa53c678b2c421d90b6351a7388a37 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 10 Jul 2012 16:56:20 -0700 Subject: Move set_thread_credentials_permanently() to set_thread_credentials() as we need to keep the saved set uid/gid otherwise there is an interaction with open[at]() and NO_ATIME returning EPERM. As this is meant for threaded code inside the process we don't need to do an irreverisble change anyway. Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Jul 11 03:54:00 CEST 2012 on sn-devel-104 --- source3/include/proto.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/include/proto.h') diff --git a/source3/include/proto.h b/source3/include/proto.h index 7625983518..95dded820d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -549,10 +549,10 @@ void save_re_gid(void); void restore_re_gid(void); int set_re_uid(void); void become_user_permanently(uid_t uid, gid_t gid); -int set_thread_credentials_permanently(uid_t uid, - gid_t gid, - size_t setlen, - const gid_t *gidset); +int set_thread_credentials(uid_t uid, + gid_t gid, + size_t setlen, + const gid_t *gidset); bool is_setuid_root(void) ; /* The following definitions come from lib/util_sid.c */ -- cgit