{"action":"closed","issue":{"url":"https://api.github.com/repos/glk/pefs/issues/21","labels_url":"https://api.github.com/repos/glk/pefs/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/glk/pefs/issues/21/comments","events_url":"https://api.github.com/repos/glk/pefs/issues/21/events","html_url":"https://github.com/glk/pefs/issues/21","id":36255821,"number":21,"title":"pefs doesn't honor setkey when moving files","user":{"login":"generalmx","id":255100,"avatar_url":"https://avatars.githubusercontent.com/u/255100?v=3","gravatar_id":"","url":"https://api.github.com/users/generalmx","html_url":"https://github.com/generalmx","followers_url":"https://api.github.com/users/generalmx/followers","following_url":"https://api.github.com/users/generalmx/following{/other_user}","gists_url":"https://api.github.com/users/generalmx/gists{/gist_id}","starred_url":"https://api.github.com/users/generalmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/generalmx/subscriptions","organizations_url":"https://api.github.com/users/generalmx/orgs","repos_url":"https://api.github.com/users/generalmx/repos","events_url":"https://api.github.com/users/generalmx/events{/privacy}","received_events_url":"https://api.github.com/users/generalmx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/glk/pefs/labels/bug","name":"bug","color":"b33834"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-06-23T00:30:58Z","updated_at":"2015-02-20T09:05:30Z","closed_at":"2015-02-20T09:05:30Z","body":"It's either a bug or feature request depending on your point of view (whether a stacked filesystem should do more stringent checking before passing a command through). Example:\r\n\r\nmkdir foo\r\nmkdir foo/bar\r\npefs mount foo foo\r\npefs addchain -f -k /mnt/usb/keyfile -K /mnt/usb/keyfile -P foo\r\npefs addkey -k -p /mnt/usb/keyfile foo\r\n(OK, now \"foo\" is encrypting files as the child key.)\r\npefs setkey -k /mnt/usb/keyfile -c foo/bar\r\n(OK, now \"foo/bar\" is encrypting files as the parent key.)\r\necho \"sakdjhskdjhsdakh\" > foo/somefile\r\npefs getkey foo/somefile\r\n(Shows: child key)\r\nmv foo/somefile foo/bar/somefile\r\npefs getkey foo/bar/somefile\r\n(Still encrypted with the child key, despite being in a directory set to a different key.)\r\nmv foo/bar/somefile foo/bar/somefile2\r\npefs getkey foo/bar/somefile\r\n(Rename doesn't change it, either.)"}}