1 |
commit: d149e41c89b85dff47bd5cdc332e6c0817acdd72 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Mon Dec 23 21:18:36 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 29 19:31:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d149e41c |
7 |
|
8 |
app-i18n/librime: Set secure mode of log files. |
9 |
|
10 |
Bug: https://bugs.gentoo.org/695702 |
11 |
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> |
12 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
13 |
|
14 |
app-i18n/librime/files/librime-1.5.3-log_files_mode.patch | 14 ++++++++++++++ |
15 |
.../{librime-1.5.3.ebuild => librime-1.5.3-r1.ebuild} | 6 +++++- |
16 |
2 files changed, 19 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/app-i18n/librime/files/librime-1.5.3-log_files_mode.patch b/app-i18n/librime/files/librime-1.5.3-log_files_mode.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..7a36dea64d2 |
21 |
--- /dev/null |
22 |
+++ b/app-i18n/librime/files/librime-1.5.3-log_files_mode.patch |
23 |
@@ -0,0 +1,14 @@ |
24 |
+https://github.com/rime/librime/issues/316 |
25 |
+https://github.com/rime/librime/commit/90839b0b3d47cbfef715ea5f061c7505666ff75d |
26 |
+ |
27 |
+--- /src/rime/setup.cc |
28 |
++++ /src/rime/setup.cc |
29 |
+@@ -35,6 +35,8 @@ |
30 |
+ |
31 |
+ RIME_API void SetupLogging(const char* app_name) { |
32 |
+ #ifdef RIME_ENABLE_LOGGING |
33 |
++ // Do not allow other users to read/write log files created by current process. |
34 |
++ FLAGS_logfile_mode = 0600; |
35 |
+ google::InitGoogleLogging(app_name); |
36 |
+ #endif // RIME_ENABLE_LOGGING |
37 |
+ } |
38 |
|
39 |
diff --git a/app-i18n/librime/librime-1.5.3.ebuild b/app-i18n/librime/librime-1.5.3-r1.ebuild |
40 |
similarity index 95% |
41 |
rename from app-i18n/librime/librime-1.5.3.ebuild |
42 |
rename to app-i18n/librime/librime-1.5.3-r1.ebuild |
43 |
index 9827ea65ff6..b41cd0ea439 100644 |
44 |
--- a/app-i18n/librime/librime-1.5.3.ebuild |
45 |
+++ b/app-i18n/librime/librime-1.5.3-r1.ebuild |
46 |
@@ -28,7 +28,7 @@ RESTRICT="!test? ( test )" |
47 |
|
48 |
BDEPEND="" |
49 |
RDEPEND="app-i18n/opencc:0= |
50 |
- dev-cpp/glog:0= |
51 |
+ >=dev-cpp/glog-0.3.5:0= |
52 |
dev-cpp/yaml-cpp:0= |
53 |
dev-libs/boost:0=[nls,threads] |
54 |
dev-libs/leveldb:0= |
55 |
@@ -39,6 +39,10 @@ DEPEND="${RDEPEND} |
56 |
x11-base/xorg-proto |
57 |
test? ( dev-cpp/gtest )" |
58 |
|
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}/${P}-log_files_mode.patch" |
61 |
+) |
62 |
+ |
63 |
DOCS=(CHANGELOG.md README.md) |
64 |
|
65 |
src_prepare() { |