mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +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;
|
||||
}
|
||||
|
||||
if (shm_ds.shm_perm.cuid != sec_initial_uid() || shm_ds.shm_perm.cgid != sec_initial_gid()) {
|
||||
DEBUG(0,("ERROR: we did not create the shmem (owned by another user)\n"));
|
||||
if (shm_ds.shm_perm.cuid != sec_initial_uid() ||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -622,6 +622,7 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
|
||||
POPT_TABLEEND
|
||||
};
|
||||
|
||||
sec_init();
|
||||
load_case_tables();
|
||||
|
||||
setup_logging(argv[0],True);
|
||||
|
Loading…
Reference in New Issue
Block a user