diff options
author | Andreas Schneider <asn@samba.org> | 2015-10-13 14:43:08 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-11-05 09:23:15 +0100 |
commit | e821e4596a9798bb06573fcb277bbc8b8b80631f (patch) | |
tree | 23938eb8d930cbd631dc719816d8bb1a4689e367 /source4 | |
parent | 3d7fdb8dbc1457aab5b2fe9580115bd518a93c1f (diff) | |
download | samba-e821e4596a9798bb06573fcb277bbc8b8b80631f.tar.gz |
ntvfs: Add error debug statements for set_unix_security
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ntvfs/unixuid/vfs_unixuid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/unixuid/vfs_unixuid.c b/source4/ntvfs/unixuid/vfs_unixuid.c index 88f3b8b6f34..ce7abfca638 100644 --- a/source4/ntvfs/unixuid/vfs_unixuid.c +++ b/source4/ntvfs/unixuid/vfs_unixuid.c @@ -76,12 +76,15 @@ static NTSTATUS set_unix_security(struct security_unix_token *sec) samba_seteuid(0); if (samba_setgroups(sec->ngroups, sec->groups) != 0) { + DBG_ERR("*** samba_setgroups failed\n"); return NT_STATUS_ACCESS_DENIED; } if (samba_setegid(sec->gid) != 0) { + DBG_ERR("*** samba_setegid(%u) failed\n", sec->gid); return NT_STATUS_ACCESS_DENIED; } if (samba_seteuid(sec->uid) != 0) { + DBG_ERR("*** samba_seteuid(%u) failed\n", sec->uid); return NT_STATUS_ACCESS_DENIED; } return NT_STATUS_OK; |