The Samba-Bugzilla – Attachment 11546 Details for
Bug 11577
Read Only Tracking DBs fail to open when running with selinux enabled.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for v4-2-test cherry-picked from master
bug11577.v4-2-test.patch (text/plain), 1.49 KB, created by
Michael Adam
on 2015-10-28 10:59:03 UTC
(
hide
)
Description:
Patch for v4-2-test cherry-picked from master
Filename:
MIME Type:
Creator:
Michael Adam
Created:
2015-10-28 10:59:03 UTC
Size:
1.49 KB
patch
obsolete
>From e3fdc7b1a713c55266803952ad74364977fc01a6 Mon Sep 17 00:00:00 2001 >From: Michael Adam <obnox@samba.org> >Date: Tue, 27 Oct 2015 10:20:31 +0100 >Subject: [PATCH] ctdb: open the RO tracking db with perms 0600 instead of 0000 > >While 0000 is possible from the UNIX/POSIX point of view, >these permissions create problems in an environment with >selinux enabled, which is more strict. > >This aligns the perms of the read only tracking db with other >internal dbs. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11577 > >Signed-off-by: Michael Adam <obnox@samba.org> >Reviewed-by: Amitay Isaacs <amitay@gmail.com> > >Autobuild-User(master): Amitay Isaacs <amitay@samba.org> >Autobuild-Date(master): Wed Oct 28 06:13:09 CET 2015 on sn-devel-104 > >(cherry picked from commit 0a90ed51245d4a7acb23d22e47ee3fd5b83819b0) >--- > ctdb/server/ctdb_ltdb_server.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/ctdb/server/ctdb_ltdb_server.c b/ctdb/server/ctdb_ltdb_server.c >index 174a460..d6a36a5 100644 >--- a/ctdb/server/ctdb_ltdb_server.c >+++ b/ctdb/server/ctdb_ltdb_server.c >@@ -723,7 +723,7 @@ int ctdb_set_db_readonly(struct ctdb_context *ctdb, struct ctdb_db_context *ctdb > ctdb_db->rottdb = tdb_open(ropath, > ctdb->tunable.database_hash_size, > TDB_NOLOCK|TDB_CLEAR_IF_FIRST|TDB_NOSYNC, >- O_CREAT|O_RDWR, 0); >+ O_CREAT|O_RDWR, 0600); > if (ctdb_db->rottdb == NULL) { > DEBUG(DEBUG_CRIT,("Failed to open/create the tracking database '%s'\n", ropath)); > talloc_free(ropath); >-- >2.4.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
obnox
:
review+
obnox
:
review?
(
amitay
)
jarrpa
:
review+
Actions:
View
Attachments on
bug 11577
:
11545
| 11546 |
11548