Skip to content

Commit 4fc5be7

Browse files
committed
Packaging fixes for rc2. UI improvements.
1 parent 5a814fd commit 4fc5be7

File tree

149 files changed

+4386
-1719
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+4386
-1719
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ recursive-exclude test_data *
1212
recursive-exclude executables *.zip
1313
recursive-exclude executables/windows/installers *.exe
1414
recursive-exclude executables *.bin
15+
recursive-exclude grr/config/debian *
1516

1617
recursive-exclude client/minicomm *
1718
recursive-exclude * *.pyc

executables/components/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

executables/darwin/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

executables/linux/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

grr/client/client_actions/osx/osx_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515

1616
from grr.lib import config_lib
1717
from grr.lib import flags
18+
from grr.lib import osx_launchd as testdata
1819
from grr.lib import test_lib
1920

20-
from grr.test_data import osx_launchd as testdata
21-
2221

2322
class OSXClientTests(test_lib.OSSpecificClientTests):
2423
"""OSX client action tests."""

grr/client/client_actions/windows/windows_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from grr.client import vfs
99
from grr.lib import action_mocks
1010
from grr.lib import aff4
11+
from grr.lib import client_fixture
1112
from grr.lib import flags
1213
from grr.lib import test_lib
1314
from grr.lib import utils
@@ -16,7 +17,6 @@
1617
# pylint: enable=unused-import
1718
from grr.lib.rdfvalues import paths as rdf_paths
1819
from grr.lib.rdfvalues import protodict as rdf_protodict
19-
from grr.test_data import client_fixture
2020

2121

2222
class WindowsActionTests(test_lib.OSSpecificClientTests):

grr/client/components/rekall_support/rekall.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ message RekallRequest {
5353
}];
5454
}
5555

56-
// Next field: 8
56+
// Next field: 9
5757
message RekallResponse {
5858
// Deprecated. Anything written in this field will be compressed and placed
5959
// into the compressed_json_messages field upon serialization.
@@ -79,6 +79,11 @@ message RekallResponse {
7979
optional string repository_version = 6 [(sem_type) = {
8080
description: "The version of the repository we want to use."
8181
}, default="v1.0"];
82+
83+
repeated string downloaded_files = 8 [(sem_type) = {
84+
description: "A list of downloaded files.",
85+
type: "RDFURN",
86+
}];
8287
}
8388

8489
message RekallProfile {

grr/config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from grr.config import contexts
1515
from grr.config import data_server
1616
from grr.config import data_store
17+
from grr.config import gui
1718
from grr.config import local
1819
from grr.config import logging
1920
from grr.config import output_plugins

grr/config/artifacts.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
#!/usr/bin/env python
22
"""Configuration parameters for the artifact subsystem."""
33

4-
import os
5-
64
from grr.lib import config_lib
75

86

97
config_lib.DEFINE_list(
108
"Artifacts.artifact_dirs",
11-
[
12-
os.path.normpath(os.path.dirname(__file__) + "/../../grr/artifacts"),
13-
os.path.normpath(
14-
os.path.dirname(__file__) + "/../../grr/artifacts/" +
15-
"flow_templates"),
16-
os.path.normpath(
17-
os.path.dirname(__file__) +
18-
"/../../grr/artifacts/local")],
9+
["%(grr/artifacts|resource)",
10+
"%(grr/artifacts/flow_templates|resource)",
11+
"%(grr/artifacts/local|resource)"],
1912
"A list directories to load artifacts from.")
2013

2114
config_lib.DEFINE_list("Artifacts.knowledge_base",

grr/config/build.py

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from grr.lib import rdfvalue
88
from grr.lib import type_info
99

10-
1110
# Windows Memory driver information.
1211
config_lib.DEFINE_string("MemoryDriver.driver_service_name",
1312
"Pmem",
@@ -105,7 +104,8 @@ def FromString(self, string):
105104
import os
106105
107106
# By default build in one dir mode.
108-
client_path = os.path.join\(r"%(%(ClientBuilder.source)|fixpathsep)", "grr", "client", "client.py"\)
107+
client_path = r"%(%(grr.client.client|module_path)|fixpathsep)"
108+
109109
a = Analysis\(
110110
[client_path],
111111
hiddenimports=[],
@@ -195,7 +195,7 @@ def FromString(self, string):
195195

196196
config_lib.DEFINE_bytes(
197197
"PyInstaller.icon",
198-
"%(%(ClientBuilder.source)/grr/gui/static/images/grr.ico|file)",
198+
"%(%(grr/gui/static/images/grr.ico|resource)|file)",
199199
"The icon file contents to use for building the client.")
200200

201201
config_lib.DEFINE_string(
@@ -231,7 +231,7 @@ def FromString(self, string):
231231

232232
config_lib.DEFINE_option(type_info.PathTypeInfo(
233233
name="ClientBuilder.nanny_source_dir", must_exist=True,
234-
default="%(ClientBuilder.source)/grr/client/nanny/",
234+
default="%(grr.client|module_path)/nanny/",
235235
help="Path to the windows nanny VS solution file."))
236236

237237
config_lib.DEFINE_option(type_info.PathTypeInfo(
@@ -263,14 +263,13 @@ def FromString(self, string):
263263

264264
config_lib.DEFINE_option(type_info.PathTypeInfo(
265265
name="ClientBuilder.template_path", must_exist=False,
266-
default=(
267-
"%(ClientBuilder.executables_dir)/%(Client.platform)/templates/"
268-
"%(PyInstaller.template_filename)"),
269-
help="The full path to the executable template file."))
266+
default=("%(grr-response-templates|template-resource)/"
267+
"templates/%(PyInstaller.template_filename)"),
268+
help="The full path to the executable template files."))
270269

271270
config_lib.DEFINE_option(type_info.PathTypeInfo(
272271
name="ClientBuilder.executables_dir", must_exist=False,
273-
default="%(ClientBuilder.source)/grr/executables",
272+
default="%(executables|resource)",
274273
help="The path to the grr executables directory."))
275274

276275
config_lib.DEFINE_option(type_info.PathTypeInfo(
@@ -381,20 +380,14 @@ def FromString(self, string):
381380
default="%(Client.name)",
382381
help="The debian package name.")
383382

384-
385-
config_lib.DEFINE_option(type_info.PathTypeInfo(
386-
name="ClientBuilder.source", must_exist=False,
387-
default=os.path.normpath(__file__ + "/../../.."),
388-
help="The location of the source files."))
389-
390383
config_lib.DEFINE_option(type_info.PathTypeInfo(
391384
name="ClientBuilder.components_source_dir",
392-
default="%(ClientBuilder.source)/grr/client/components",
385+
default="%(grr.client.components|module_path)",
393386
help="The directory that contains the component source."))
394387

395388
config_lib.DEFINE_option(type_info.PathTypeInfo(
396389
name="ClientBuilder.components_dir", must_exist=False,
397-
default="%(ClientBuilder.executables_dir)/components",
390+
default="%(grr-response-templates|template-resource)/components",
398391
help="The directory that contains the components."))
399392

400393
config_lib.DEFINE_string(

0 commit comments

Comments
 (0)