Merge lp:~thomas-voss/trust-store/fix-mir-comments into lp:trust-store

Proposed by Thomas Voß
Status: Merged
Approved by: Thomas Voß
Approved revision: 18
Merged at revision: 17
Proposed branch: lp:~thomas-voss/trust-store/fix-mir-comments
Merge into: lp:trust-store
Diff against target: 135 lines (+3/-80)
5 files modified
data/session.conf (+0/-42)
data/system.conf (+0/-23)
src/core/trust/impl/sqlite3/store.cpp (+3/-1)
tests/CMakeLists.txt (+0/-4)
tests/remote_trust_store_test.cpp (+0/-10)
To merge this branch: bzr merge lp:~thomas-voss/trust-store/fix-mir-comments
Reviewer Review Type Date Requested Status
Seth Arnold (community) Approve
PS Jenkins bot continuous-integration Approve
Ubuntu Phablet Team Pending
Review via email: mp+226964@code.launchpad.net

Commit message

Remove obsolete data/session.conf and data/system.conf files.
Adjust directory creation default mode to 0755.

Description of the change

Remove obsolete data/session.conf and data/system.conf files.
Adjust directory creation default mode to 0755.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
18. By Thomas Voß

Remove obsolete header file.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Looks good to me, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'data/session.conf'
2--- data/session.conf 2014-05-06 11:32:13 +0000
3+++ data/session.conf 1970-01-01 00:00:00 +0000
4@@ -1,42 +0,0 @@
5-<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
6- "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
7-<busconfig>
8- <!-- If we fork, keep the user's original umask to avoid affecting
9- the behavior of child processes. -->
10- <keep_umask/>
11-
12- <type>session</type>
13-
14- <listen>unix:tmpdir=/tmp</listen>
15-
16- <standard_session_servicedirs />
17-
18- <policy context="default">
19- <!-- Allow everything to be sent -->
20- <allow send_destination="*" eavesdrop="true"/>
21- <!-- Allow everything to be received -->
22- <allow eavesdrop="true"/>
23- <!-- Allow anyone to own anything -->
24- <allow own="*"/>
25- </policy>
26-
27- <!-- raise the service start timeout to 40 seconds as it can timeout
28- on the live cd on slow machines -->
29- <limit name="service_start_timeout">60000</limit>
30-
31- <!-- the memory limits are 1G instead of say 4G because they can't exceed 32-bit signed int max -->
32- <limit name="max_incoming_bytes">1000000000</limit>
33- <limit name="max_outgoing_bytes">1000000000</limit>
34- <limit name="max_message_size">1000000000</limit>
35- <limit name="service_start_timeout">120000</limit>
36- <limit name="auth_timeout">240000</limit>
37- <limit name="max_completed_connections">100000</limit>
38- <limit name="max_incomplete_connections">10000</limit>
39- <limit name="max_connections_per_user">100000</limit>
40- <limit name="max_pending_service_starts">10000</limit>
41- <limit name="max_names_per_connection">50000</limit>
42- <limit name="max_match_rules_per_connection">50000</limit>
43- <limit name="max_replies_per_connection">50000</limit>
44- <limit name="reply_timeout">300000</limit>
45-
46-</busconfig>
47
48=== removed file 'data/system.conf'
49--- data/system.conf 2014-05-06 11:32:13 +0000
50+++ data/system.conf 1970-01-01 00:00:00 +0000
51@@ -1,23 +0,0 @@
52-<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
53- "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
54-<busconfig>
55- <!-- If we fork, keep the user's original umask to avoid affecting
56- the behavior of child processes. -->
57- <keep_umask/>
58-
59- <type>system</type>
60-
61- <listen>unix:tmpdir=/tmp</listen>
62-
63- <standard_system_servicedirs/>
64-
65- <policy context="default">
66- <!-- Allow everything to be sent -->
67- <allow send_destination="*" eavesdrop="true"/>
68- <!-- Allow everything to be received -->
69- <allow eavesdrop="true"/>
70- <!-- Allow anyone to own anything -->
71- <allow own="*"/>
72- </policy>
73-
74-</busconfig>
75
76=== modified file 'src/core/trust/impl/sqlite3/store.cpp'
77--- src/core/trust/impl/sqlite3/store.cpp 2014-06-26 07:09:51 +0000
78+++ src/core/trust/impl/sqlite3/store.cpp 2014-07-16 21:34:23 +0000
79@@ -50,10 +50,12 @@
80 {
81 Directory(const std::string& name)
82 {
83+ // Default permissions for directory creation.
84+ mode_t default_mode = 0755;
85 // This is only a helper and we are consciously ignoring
86 // errors. We will fail later on when trying to opening the
87 // database, anyway.
88- mkdir(name.c_str(), 0777);
89+ mkdir(name.c_str(), default_mode);
90 }
91 };
92
93
94=== modified file 'tests/CMakeLists.txt'
95--- tests/CMakeLists.txt 2014-05-06 11:32:13 +0000
96+++ tests/CMakeLists.txt 2014-07-16 21:34:23 +0000
97@@ -12,10 +12,6 @@
98
99 add_definitions(-DCORE_DBUS_ENABLE_GOOGLE_TEST_FIXTURE)
100
101-configure_file(
102- ${CMAKE_CURRENT_SOURCE_DIR}/test_data.h.in
103- ${CMAKE_CURRENT_BINARY_DIR}/test_data.h @ONLY)
104-
105 include_directories(
106 ${CMAKE_CURRENT_BINARY_DIR}
107 ${GTEST_INCLUDE_DIRS}
108
109=== modified file 'tests/remote_trust_store_test.cpp'
110--- tests/remote_trust_store_test.cpp 2014-05-06 11:32:13 +0000
111+++ tests/remote_trust_store_test.cpp 2014-07-16 21:34:23 +0000
112@@ -28,8 +28,6 @@
113 #include <core/testing/cross_process_sync.h>
114 #include <core/testing/fork_and_run.h>
115
116-#include "test_data.h"
117-
118 #include <gtest/gtest.h>
119
120 #include <chrono>
121@@ -42,14 +40,6 @@
122 struct RemoteTrustStore : public core::dbus::testing::Fixture
123 {
124 };
125-
126-auto session_bus_config_file =
127- core::dbus::testing::Fixture::default_session_bus_config_file() =
128- core::testing::session_bus_configuration_file();
129-
130-auto system_bus_config_file =
131- core::dbus::testing::Fixture::default_system_bus_config_file() =
132- core::testing::system_bus_configuration_file();
133 }
134
135 TEST_F(RemoteTrustStore, a_store_exposed_to_the_session_can_be_reset)

Subscribers

People subscribed via source and target branches