Commit 949b003a authored by anonym's avatar anonym
Browse files

The "AppArmor has denied..." step cannot be used for /tmp.

... because when the user-tmp abstraction is used, AppArmor doesn't
log it.
parent 9fd0c9f8
......@@ -442,9 +442,14 @@ Given /^I save the state so the background can be restored next scenario$/ do
@skip_steps_while_restoring_background = false
end
Then /^I see "([^"]*)" after at most (\d+) seconds$/ do |image, time|
Then /^I (do not )?see "([^"]*)" after at most (\d+) seconds$/ do |negation, image, time|
next if @skip_steps_while_restoring_background
@screen.wait(image, time.to_i)
begin
@screen.wait(image, time.to_i)
raise "found '#{image}' while expecting not to" if negation
rescue FindFailed => e
raise e if not(negation)
end
end
Then /^all Internet traffic has only flowed through Tor$/ do
......
......@@ -74,9 +74,9 @@ Feature: Browsing the web using the Tor Browser
Given AppArmor has not denied "/usr/local/lib/tor-browser/firefox" from opening "/home/amnesia/.gnupg/synaptic.html"
When I open the address "file:///home/amnesia/.gnupg/synaptic.html" in the Tor Browser
Then AppArmor has denied "/usr/local/lib/tor-browser/firefox" from opening "/home/amnesia/.gnupg/synaptic.html" after at most 10 seconds
Given AppArmor has not denied "/usr/local/lib/tor-browser/firefox" from opening "/tmp/synaptic.html"
# We do not get any AppArmor log for when access to files in /tmp is defnied since we use user-tmp abstration.
When I open the address "file:///tmp/synaptic.html" in the Tor Browser
Then AppArmor has denied "/usr/local/lib/tor-browser/firefox" from opening "/tmp/synaptic.html" after at most 10 seconds
And I do not see "TorBrowserSynapticManual.png" after at most 10 seconds
Scenario: The "Tails documentation" link on the Desktop works
When I double-click on the "Tails documentation" link on the Desktop
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment