| # Copyright 2022 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//common-mk/install_config.gni") |
| import("//common-mk/install_seccomp_policy.gni") |
| |
| group("init") { |
| deps = [ |
| ":install_init_config", |
| ":install_minijail_conf", |
| ":install_seccomp", |
| ":install_tmpfiles_config", |
| ] |
| } |
| |
| install_seccomp_policy("install_seccomp") { |
| _arch = getenv("ARCH") |
| sources = [ "seccomp/${_arch}/mojo_service_manager.policy" ] |
| install_path = "/usr/share/policy" |
| } |
| |
| install_config("install_init_config") { |
| sources = [ "mojo_service_manager.conf" ] |
| install_path = "/etc/init" |
| } |
| |
| install_config("install_minijail_conf") { |
| sources = [ "minijail/mojo_service_manager.conf" ] |
| install_path = "/usr/share/minijail" |
| } |
| |
| install_config("install_tmpfiles_config") { |
| sources = [ "tmpfiles.d/mojo_service_manager.conf" ] |
| install_path = "/usr/lib/tmpfiles.d/on-demand" |
| } |