{"action":"created","issue":{"url":"https://api.github.com/repos/netblue30/firejail/issues/422","repository_url":"https://api.github.com/repos/netblue30/firejail","labels_url":"https://api.github.com/repos/netblue30/firejail/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/netblue30/firejail/issues/422/comments","events_url":"https://api.github.com/repos/netblue30/firejail/issues/422/events","html_url":"https://github.com/netblue30/firejail/issues/422","id":147135288,"number":422,"title":"private-bin doesn't use /usr/local/bin","user":{"login":"avoidr","id":15576250,"avatar_url":"https://avatars.githubusercontent.com/u/15576250?v=3","gravatar_id":"","url":"https://api.github.com/users/avoidr","html_url":"https://github.com/avoidr","followers_url":"https://api.github.com/users/avoidr/followers","following_url":"https://api.github.com/users/avoidr/following{/other_user}","gists_url":"https://api.github.com/users/avoidr/gists{/gist_id}","starred_url":"https://api.github.com/users/avoidr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avoidr/subscriptions","organizations_url":"https://api.github.com/users/avoidr/orgs","repos_url":"https://api.github.com/users/avoidr/repos","events_url":"https://api.github.com/users/avoidr/events{/privacy}","received_events_url":"https://api.github.com/users/avoidr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/netblue30/firejail/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-09T14:57:04Z","updated_at":"2016-04-12T15:46:34Z","closed_at":null,"body":"And that's a cool thing, except that it doesn't seem to should do this, because `/usr/local/bin` isn't in `fs_bin.c`'s paths array.\r\n\r\nWhat I wanted to do is private-bin a program that only resides in my /usr/local/bin and not any of those in the paths array. So that program naturally wasn't found and firejail told me that it's ignoring private-bin for that reason.\r\n\r\nSo I added /usr/local/bin to the paths array and it worked.\r\nAt the same time I noticed something weird. I have another program in both /usr/bin and /usr/local/bin. Before I made any changes to the array, the program from /usr/local/bin was copied to the new bin dir. When I added /usr/local/bin, the version from /usr/bin was copied.\r\n\r\nAgain;\r\n- no `/usr/local/bin` in paths, but `/usr/local/bin` version was used, while debug said `/usr/bin`. (woot)\r\n- with `/usr/local/bin` appended, `/usr/bin` version was used, debug says `/usr/bin`. (correct)\r\n- with `/usr/local/bin` prepended, `/usr/local/bin` version was used, debug says `/usr/local/bin`, too. (correct)"},"comment":{"url":"https://api.github.com/repos/netblue30/firejail/issues/comments/208970901","html_url":"https://github.com/netblue30/firejail/issues/422#issuecomment-208970901","issue_url":"https://api.github.com/repos/netblue30/firejail/issues/422","id":208970901,"user":{"login":"avoidr","id":15576250,"avatar_url":"https://avatars.githubusercontent.com/u/15576250?v=3","gravatar_id":"","url":"https://api.github.com/users/avoidr","html_url":"https://github.com/avoidr","followers_url":"https://api.github.com/users/avoidr/followers","following_url":"https://api.github.com/users/avoidr/following{/other_user}","gists_url":"https://api.github.com/users/avoidr/gists{/gist_id}","starred_url":"https://api.github.com/users/avoidr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avoidr/subscriptions","organizations_url":"https://api.github.com/users/avoidr/orgs","repos_url":"https://api.github.com/users/avoidr/repos","events_url":"https://api.github.com/users/avoidr/events{/privacy}","received_events_url":"https://api.github.com/users/avoidr/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T15:46:34Z","updated_at":"2016-04-12T15:46:34Z","body":"There is also /usr/local/sbin and that's why I think it would be good to use $PATH."}}