mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ncalrpc: Force ncalrpc dir to be mode 755 in all users
This allows this directory to be shared between Samba3 and Samba4 in a Franky-style setup easily. Andrew Bartlett
This commit is contained in:
parent
eae061293b
commit
aae9353ecf
@ -891,13 +891,13 @@ bool setup_dcerpc_ncalrpc_socket(struct tevent_context *ev_ctx,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!directory_create_or_exist(lp_ncalrpc_dir(), geteuid(), 0700)) {
|
||||
if (!directory_create_or_exist(lp_ncalrpc_dir(), geteuid(), 0755)) {
|
||||
DEBUG(0, ("Failed to create pipe directory %s - %s\n",
|
||||
lp_ncalrpc_dir(), strerror(errno)));
|
||||
goto out;
|
||||
}
|
||||
|
||||
state->fd = create_pipe_sock(lp_ncalrpc_dir(), name, 0700);
|
||||
state->fd = create_pipe_sock(lp_ncalrpc_dir(), name, 0755);
|
||||
if (state->fd == -1) {
|
||||
DEBUG(0, ("Failed to create pipe socket! [%s/%s]\n",
|
||||
lp_ncalrpc_dir(), name));
|
||||
|
@ -200,6 +200,13 @@ NTSTATUS tstream_setup_named_pipe(TALLOC_CTX *mem_ctx,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!directory_create_or_exist(lpcfg_ncalrpc_dir(lp_ctx), geteuid(), 0755)) {
|
||||
status = map_nt_error_from_unix(errno);
|
||||
DEBUG(0,(__location__ ": Failed to create ncalrpc pipe directory '%s' - %s\n",
|
||||
lpcfg_ncalrpc_dir(lp_ctx), nt_errstr(status)));
|
||||
goto fail;
|
||||
}
|
||||
|
||||
dirname = talloc_asprintf(pipe_sock, "%s/np", lpcfg_ncalrpc_dir(lp_ctx));
|
||||
if (dirname == NULL) {
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user