1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

Remove uid_wrapper related code.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andreas Schneider 2013-07-03 12:52:52 +02:00 committed by Stefan Metzmacher
parent 6d23354f72
commit 751b2b2d2a
6 changed files with 1 additions and 51 deletions

View 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
)

View File

@ -21,50 +21,6 @@
#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

View File

@ -23,7 +23,6 @@
/* Required Headers */
#define UID_WRAPPER_NOT_REPLACE
#include "replace.h"
#include "libwbclient.h"
#include "../winbind_client.h"

View 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

View 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"

View 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"