Esempio n. 1
0
                       False,
                       help="If true log more verbosely.")

config_lib.DEFINE_string("Logging.path",
                         "%(Config.prefix)/var/log/",
                         help="Path to log file directory.")

config_lib.DEFINE_string("Logging.syslog_path",
                         "/dev/log",
                         help="Path to syslog socket. This can be a unix "
                         "domain socket or in a UDP host:port notation.")

config_lib.DEFINE_string("Logging.filename",
                         "%(Logging.path)/GRRlog.txt",
                         help="Filename of the grr log file.")

config_lib.DEFINE_option(
    type_info.RDFValueType(rdfclass=rdf_standard.DomainEmailAddress,
                           name="Monitoring.alert_email",
                           help="The email address to send events to.",
                           default="grr-monitoring@localhost"))

config_lib.DEFINE_option(
    type_info.RDFValueType(rdfclass=rdf_standard.DomainEmailAddress,
                           name="Monitoring.emergency_access_email",
                           help="The email address to notify in an emergency.",
                           default="grr-emergency@localhost"))

config_lib.DEFINE_integer("Monitoring.http_port", 0,
                          "Port for stats monitoring server.")
Esempio n. 2
0
#!/usr/bin/env python
"""Configuration parameters for client builder and server packaging."""
from __future__ import absolute_import
from __future__ import unicode_literals

import os
import time

from grr_response_core.lib import config_lib
from grr_response_core.lib import rdfvalue
from grr_response_core.lib import type_info

config_lib.DEFINE_option(
    type_info.RDFValueType(
        rdfclass=rdfvalue.RDFURN,
        name="Config.aff4_root",
        default="aff4:/config/",
        description=("The path where the configs are stored in the aff4 "
                     "namespace.")))

config_lib.DEFINE_option(
    type_info.RDFValueType(
        rdfclass=rdfvalue.RDFURN,
        name="Config.python_hack_root",
        default="%(Config.aff4_root)/python_hacks",
        description=("The path where python hacks are stored in the aff4 "
                     "namespace.")))

# Executables must be signed and uploaded to their dedicated AFF4 namespace.
config_lib.DEFINE_option(
    type_info.RDFValueType(
Esempio n. 3
0
config_lib.DEFINE_string(name="ClientBuilder.output_basename",
                         default=("%(Client.prefix)%(Client.name)_"
                                  "%(Source.version_string)_%(Client.arch)"),
                         help="The base name of the output package.")

# Windows client specific options.
config_lib.DEFINE_bool(
    "ClientBuilder.console",
    default=False,
    help="Should the application be built as a console program. "
    "This aids debugging in windows.")

config_lib.DEFINE_option(
    PathTypeInfo(name="ClientBuilder.nanny_source_dir",
                 must_exist=True,
                 default=("%(grr_response_client|"
                          "module_path)/nanny/"),
                 description="Path to the windows nanny VS solution file."))

config_lib.DEFINE_option(
    PathTypeInfo(
        name="ClientBuilder.nanny_prebuilt_binaries",
        must_exist=False,
        default="%(ClientBuilder.executables_dir)/%(Client.platform)/",
        description="Path to the pre-build GRRNanny executables (This will be "
        "used if there are no VS compilers available)."))

config_lib.DEFINE_choice(name="ClientBuilder.build_type",
                         default="Release",
                         choices=["Release", "Debug"],
                         help="Type of build (Debug, Release)")