Remove uid_wrapper related code.
authorAndreas Schneider <asn@samba.org>
Wed, 3 Jul 2013 10:52:52 +0000 (12:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Apr 2014 12:56:05 +0000 (14:56 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/replace/wscript
lib/util/setid.c
nsswitch/libwbclient/wbc_pam.c
nsswitch/pam_winbind.c
nsswitch/wb_common.c
source3/libsmb/smb_share_modes.c

index 6a8ba1d27062b7db87f36beeedcca120d69ad9ff..f26ae943e20a2fd2499a3a93e5178ca158415356 100644 (file)
@@ -617,7 +617,7 @@ def build(bld):
         REPLACE_HOSTCC_SOURCE,
         use_hostcc=True,
         use_global_deps=False,
-        cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -DUID_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_',
+        cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_',
         group='compiler_libraries',
         deps = extra_libs
     )
index c5ee64484cc81cb5c8ec0ba259e522f60382ef6b..cdf8fd96d3317ba466df9476d45a3fba28bf965b 100644 (file)
 #include "replace.h"
 #include "system/passwd.h"
 
-#ifdef UID_WRAPPER_REPLACE
-
-#ifdef samba_seteuid
-#undef samba_seteuid
-#endif
-
-#ifdef samba_setreuid
-#undef samba_setreuid
-#endif
-
-#ifdef samba_setresuid
-#undef samba_setresuid
-#endif
-
-#ifdef samba_setegid
-#undef samba_setegid
-#endif
-
-#ifdef samba_setregid
-#undef samba_setregid
-#endif
-
-#ifdef samba_setresgid
-#undef samba_setresgid
-#endif
-
-#ifdef samba_setgroups
-#undef samba_setgroups
-#endif
-
-/* uid_wrapper will have redefined these. */
-int samba_setresuid(uid_t ruid, uid_t euid, uid_t suid);
-int samba_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
-int samba_setreuid(uid_t ruid, uid_t euid);
-int samba_setregid(gid_t rgid, gid_t egid);
-int samba_seteuid(uid_t euid);
-int samba_setegid(gid_t egid);
-int samba_setuid(uid_t uid);
-int samba_setgid(gid_t gid);
-int samba_setuidx(int flags, uid_t uid);
-int samba_setgidx(int flags, gid_t gid);
-int samba_setgroups(size_t setlen, const gid_t *gidset);
-#endif
-
 #include "../lib/util/setid.h"
 
 #else
index f183cc61b1e41fb64505444b82f1d27be2985cc1..51fc3bc5a24e5f8a0669d9e6545a929b78ebf56b 100644 (file)
@@ -23,7 +23,6 @@
 
 /* Required Headers */
 
-#define UID_WRAPPER_NOT_REPLACE
 #include "replace.h"
 #include "libwbclient.h"
 #include "../winbind_client.h"
index 258e5ac2f72e61ed1b5626bd12c3b942f0bbbe0d..a8883afd1dee282f5a8fdf0187612f9755838d13 100644 (file)
@@ -10,8 +10,6 @@
    <sopwith@redhat.com> (see copyright below for full details)
 */
 
-#define UID_WRAPPER_NOT_REPLACE
-
 #include "pam_winbind.h"
 
 enum pam_winbind_request_type 
index 5fde8d0f1385fb8b3d2759ac54afaf62433983c9..23b78874c1173207532924eec2a3307bc5031ed3 100644 (file)
@@ -22,8 +22,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#define UID_WRAPPER_NOT_REPLACE
-
 #include "replace.h"
 #include "system/select.h"
 #include "winbind_client.h"
index c29721dd4307513769612f023e7f6a3ab26511b4..f2decc1779a3bbe8dfc1cdcdd580bb89d214b863 100644 (file)
@@ -24,7 +24,6 @@
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#define UID_WRAPPER_NOT_REPLACE
 #include "includes.h"
 #include "system/filesys.h"
 #include "smb_share_modes.h"