blob: 60afffc3e5f3999ccac583e8f922d6b29fcbed20 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Permission Broker Daemon"
author "chromium-os-dev@chromium.org"
env PERMISSION_BROKER_GRANT_GROUP=devbroker-access
start on started firewalld
stop on stopping firewalld
expect fork
respawn
# TODO(gdk): Unclaimed devices that are handled by the permission broker
# should, in the future, be owned by the devbroker user so that the permission
# broker does not need to run with enhanced capabilities.
# Grant CAP_CHOWN, CAP_DAC_OVERRIDE and CAP_FOWNER
exec minijail0 -u devbroker -c 000b -i /usr/bin/permission_broker \
--access_group=${PERMISSION_BROKER_GRANT_GROUP}