summaryrefslogtreecommitdiff
path: root/units/ethernet
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2020-04-23 18:38:42 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2020-04-23 18:38:42 +0100
commit8a72fd82b4b03fa92c0cbddcff2e3094e4c9b8b2 (patch)
tree6acac0ab17be2f4d0bea608f5c568324b920dcf3 /units/ethernet
parent4f7a6f7757c0e2f6c8d7013a503108917ba52ebf (diff)
ethernet: fix SO_BINDTODEVICE permissions errors
In some circumstances a test run will switch to normal_user that does not have permission to bind a socket to a specific interface which causes errors when running ping -I{interrface}. Force the test to run as root.
Diffstat (limited to 'units/ethernet')
-rw-r--r--units/ethernet/jobs.pxu1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu
index bd7f273..6a48955 100644
--- a/units/ethernet/jobs.pxu
+++ b/units/ethernet/jobs.pxu
@@ -176,6 +176,7 @@ command:
category_id: com.canonical.plainbox::ethernet
estimated_duration: 4.0
flags: preserve-locale also-after-suspend
+user: root
unit: template
template-resource: device