blob: 48cd5b145c0ccdca2f51dda01b6471c5430e591f [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
CROS_WORKON_INCREMENTAL_BUILD="1"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_SUBTREE="common-mk arc/removable-media"
inherit cros-workon
DESCRIPTION="Container to run Android's removable-media daemon."
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/arc/removable-media"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="~*"
RDEPEND="chromeos-base/mount-passthrough
!<chromeos-base/chromeos-cheets-scripts-0.0.2-r470
"
CONTAINER_DIR="/opt/google/containers/arc-removable-media"
src_install() {
insinto /etc/init
doins arc/removable-media/arc-removable-media.conf
# Keep the parent directory of mountpoints inaccessible from non-root
# users because mountpoints themselves are often world-readable but we
# do not want to expose them.
# container-root is where the root filesystem of the container in which
# arc-obb-mounter daemon runs is mounted.
diropts --mode=0700 --owner=root --group=root
keepdir "${CONTAINER_DIR}/mountpoints/"
keepdir "${CONTAINER_DIR}/mountpoints/container-root"
}