mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r15529: Initialise our saved uid and gid so that we can tell when
we created the profiling shmem segment and don't bogusly refuse to look at it.
This commit is contained in:
parent
9dac3ab328
commit
eb31ef3a0e
@ -158,8 +158,12 @@ BOOL profile_setup(BOOL rdonly)
|
|||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shm_ds.shm_perm.cuid != sec_initial_uid() || shm_ds.shm_perm.cgid != sec_initial_gid()) {
|
if (shm_ds.shm_perm.cuid != sec_initial_uid() ||
|
||||||
DEBUG(0,("ERROR: we did not create the shmem (owned by another user)\n"));
|
shm_ds.shm_perm.cgid != sec_initial_gid()) {
|
||||||
|
DEBUG(0,("ERROR: we did not create the shmem "
|
||||||
|
"(owned by another user, uid %u, gid %u)\n",
|
||||||
|
shm_ds.shm_perm.cuid,
|
||||||
|
shm_ds.shm_perm.cgid));
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -622,6 +622,7 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
|
|||||||
POPT_TABLEEND
|
POPT_TABLEEND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sec_init();
|
||||||
load_case_tables();
|
load_case_tables();
|
||||||
|
|
||||||
setup_logging(argv[0],True);
|
setup_logging(argv[0],True);
|
||||||
|
Loading…
Reference in New Issue
Block a user