blob: 88e346fde3fb4aa6112bde14e5277ef13f1ca32b [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 "WPA Supplicant daemon"
author "chromium-os-dev@chromium.org"
start on started boot-services
stop on stopping boot-services
respawn
# make sure the control interface dir exists and has the right owner
pre-start script
mkdir -p -m 0750 /var/run/wpa_supplicant
chown wpa:wpa /var/run/wpa_supplicant
end script
# use minijail (drop root, keep CAP_NET_ADMIN|CAP_NET_RAW)
# enable dbus, syslog msgs, wpa_cli over unix domain socket
exec minijail0 -u wpa -g wpa -c 3000 -- \
/usr/sbin/wpa_supplicant -u -s -O/var/run/wpa_supplicant