summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2015-01-12 16:14:11 +0100
committerTails developers <amnesia@boum.org>2015-01-13 13:51:43 +0100
commitf8b219f2de414e90a0f8c9a628946f5ddd851f6a (patch)
treed8d6a90611b356cef484449d0a99af4afb8b0bb1
parentee99127febf3c2d0583efe1eacf7d51abea67e63 (diff)
Simulate module removal failure in MAC spoofing panic mode.test/xxx-macchanger
-rw-r--r--features/step_definitions/mac_spoofing.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/features/step_definitions/mac_spoofing.rb b/features/step_definitions/mac_spoofing.rb
index 37f3a97..c8f6ccb 100644
--- a/features/step_definitions/mac_spoofing.rb
+++ b/features/step_definitions/mac_spoofing.rb
@@ -57,12 +57,8 @@ end
Given /^MAC spoofing will fail, and the module cannot be unloaded$/ do
next if @skip_steps_while_restoring_background
step "MAC spoofing will fail by not spoofing and always returns true"
-
- # TODO: Make `modprove -r e1000` fail some how, perhaps by creating
- # a wrapper that fails specifically for the "-r e1000" argument but
- # operates normally for anything else. Or make tails-mac-spoof use
- # rmmod instead, and symlink it to /bin/false.
- STDERR.puts "NOT IMPLEMENTED"
+ @vm.execute_successfully("mv /sbin/rmmod /sbin/rmmod.orig")
+ @vm.execute_successfully("ln -s /bin/false /sbin/rmmod")
end
When /^see the "Network card disabled" notification$/ do