(Not complete strict confinement, but these don't break anything devmode related, and get us closer to having strict confinement working.) Added more needed interfaces to snapcraft.yaml. Created a wrapper around dnsmasq so that we can run as the snap_daemon user. Added snap_daemon user to snapcraft.yaml. Added a utility script for connecting interfaces that don't auto connect (tools/connect.sh). Not useful for production, but saves a lot of time when testing. libvirt no longer uses unix sock group "sudo" (can't run setguid in strict confinement). Got rid of "find_missing_plugins" in init script. By the time we release strict confinement to production, all those plugins will auto connect. Change-Id: I8324ac7bd0332c41cac17703eb15d7301e7babf3
17 lines
365 B
Bash
Executable File
17 lines
365 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export OVS_LOGDIR=${SNAP_COMMON}/log/openvswitch
|
|
export OVS_RUNDIR=${SNAP_COMMON}/run/openvswitch
|
|
export OVS_SYSCONFDIR=${SNAP_COMMON}/etc
|
|
export OVS_PKGDATADIR=${SNAP}/share/openvswitch
|
|
export OVS_BINDIR=${SNAP}/bin
|
|
export OVS_SBINDIR=${SNAP}/sbin
|
|
|
|
mkdir -p ${OVS_LOGDIR}
|
|
mkdir -p ${OVS_RUNDIR}
|
|
mkdir -p ${OVS_SYSCONFDIR}/openvswitch
|
|
|
|
exec $@
|