{"action":"created","issue":{"url":"https://api.github.com/repos/dyne/Tomb/issues/189","labels_url":"https://api.github.com/repos/dyne/Tomb/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/dyne/Tomb/issues/189/comments","events_url":"https://api.github.com/repos/dyne/Tomb/issues/189/events","html_url":"https://github.com/dyne/Tomb/pull/189","id":57819223,"number":189,"title":"Detect plain swaps on encrypted partition (util-linux >= 2.22) or advise user to use -f (fixes #163)","user":{"login":"hellekin","id":16546,"avatar_url":"https://avatars.githubusercontent.com/u/16546?v=3","gravatar_id":"","url":"https://api.github.com/users/hellekin","html_url":"https://github.com/hellekin","followers_url":"https://api.github.com/users/hellekin/followers","following_url":"https://api.github.com/users/hellekin/following{/other_user}","gists_url":"https://api.github.com/users/hellekin/gists{/gist_id}","starred_url":"https://api.github.com/users/hellekin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellekin/subscriptions","organizations_url":"https://api.github.com/users/hellekin/orgs","repos_url":"https://api.github.com/users/hellekin/repos","events_url":"https://api.github.com/users/hellekin/events{/privacy}","received_events_url":"https://api.github.com/users/hellekin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dyne/Tomb/labels/feature","name":"feature","color":"444444"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-16T15:44:31Z","updated_at":"2015-02-21T05:38:47Z","closed_at":"2015-02-20T12:58:40Z","pull_request":{"url":"https://api.github.com/repos/dyne/Tomb/pulls/189","html_url":"https://github.com/dyne/Tomb/pull/189","diff_url":"https://github.com/dyne/Tomb/pull/189.diff","patch_url":"https://github.com/dyne/Tomb/pull/189.patch"},"body":"Please see the updated dual behavior."},"comment":{"url":"https://api.github.com/repos/dyne/Tomb/issues/comments/75357209","html_url":"https://github.com/dyne/Tomb/pull/189#issuecomment-75357209","issue_url":"https://api.github.com/repos/dyne/Tomb/issues/189","id":75357209,"user":{"login":"hellekin","id":16546,"avatar_url":"https://avatars.githubusercontent.com/u/16546?v=3","gravatar_id":"","url":"https://api.github.com/users/hellekin","html_url":"https://github.com/hellekin","followers_url":"https://api.github.com/users/hellekin/followers","following_url":"https://api.github.com/users/hellekin/following{/other_user}","gists_url":"https://api.github.com/users/hellekin/gists{/gist_id}","starred_url":"https://api.github.com/users/hellekin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellekin/subscriptions","organizations_url":"https://api.github.com/users/hellekin/orgs","repos_url":"https://api.github.com/users/hellekin/repos","events_url":"https://api.github.com/users/hellekin/events{/privacy}","received_events_url":"https://api.github.com/users/hellekin/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T05:38:47Z","updated_at":"2015-02-21T05:38:47Z","body":"Hum, the code __already does this__.   The function `_is_encrypted_block` is well-named: it returns 0 only if the argument is an encrypted __block__.  No, the issue lies elsewhere: a swapfile is never considered secure because it's not a block.  So the code should verify that it's on an encrypted block device to be considered safe.  Otherwise we leave this to the user's consideration."}}