{"action":"created","issue":{"url":"https://api.github.com/repos/CISOfy/lynis/issues/526","repository_url":"https://api.github.com/repos/CISOfy/lynis","labels_url":"https://api.github.com/repos/CISOfy/lynis/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/CISOfy/lynis/issues/526/comments","events_url":"https://api.github.com/repos/CISOfy/lynis/issues/526/events","html_url":"https://github.com/CISOfy/lynis/issues/526","id":299944711,"number":526,"title":"Binaries not found on Manjaro","user":{"login":"remcojansen","id":224591,"avatar_url":"https://avatars1.githubusercontent.com/u/224591?v=4","gravatar_id":"","url":"https://api.github.com/users/remcojansen","html_url":"https://github.com/remcojansen","followers_url":"https://api.github.com/users/remcojansen/followers","following_url":"https://api.github.com/users/remcojansen/following{/other_user}","gists_url":"https://api.github.com/users/remcojansen/gists{/gist_id}","starred_url":"https://api.github.com/users/remcojansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remcojansen/subscriptions","organizations_url":"https://api.github.com/users/remcojansen/orgs","repos_url":"https://api.github.com/users/remcojansen/repos","events_url":"https://api.github.com/users/remcojansen/events{/privacy}","received_events_url":"https://api.github.com/users/remcojansen/received_events","type":"User","site_admin":false},"labels":[{"id":413068868,"url":"https://api.github.com/repos/CISOfy/lynis/labels/information-needed","name":"information-needed","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":{"login":"mboelen","id":6152277,"avatar_url":"https://avatars1.githubusercontent.com/u/6152277?v=4","gravatar_id":"","url":"https://api.github.com/users/mboelen","html_url":"https://github.com/mboelen","followers_url":"https://api.github.com/users/mboelen/followers","following_url":"https://api.github.com/users/mboelen/following{/other_user}","gists_url":"https://api.github.com/users/mboelen/gists{/gist_id}","starred_url":"https://api.github.com/users/mboelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboelen/subscriptions","organizations_url":"https://api.github.com/users/mboelen/orgs","repos_url":"https://api.github.com/users/mboelen/repos","events_url":"https://api.github.com/users/mboelen/events{/privacy}","received_events_url":"https://api.github.com/users/mboelen/received_events","type":"User","site_admin":false},"assignees":[{"login":"mboelen","id":6152277,"avatar_url":"https://avatars1.githubusercontent.com/u/6152277?v=4","gravatar_id":"","url":"https://api.github.com/users/mboelen","html_url":"https://github.com/mboelen","followers_url":"https://api.github.com/users/mboelen/followers","following_url":"https://api.github.com/users/mboelen/following{/other_user}","gists_url":"https://api.github.com/users/mboelen/gists{/gist_id}","starred_url":"https://api.github.com/users/mboelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboelen/subscriptions","organizations_url":"https://api.github.com/users/mboelen/orgs","repos_url":"https://api.github.com/users/mboelen/repos","events_url":"https://api.github.com/users/mboelen/events{/privacy}","received_events_url":"https://api.github.com/users/mboelen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-02-24T14:26:41Z","updated_at":"2018-02-25T18:31:20Z","closed_at":"2018-02-25T18:31:20Z","author_association":"NONE","body":"Lynis does not scan binaries in /usr/bin on Manjaro Linux. Empty variables for e.g. AWKBINARY then break the script.\r\n\r\nReason: Other paths under /usr/bin are scanned earlier and will match the regex so the script considers /usr/bin as already scanned.\r\n\r\nSolution: Add condition to the regex that the SCANDIR must be followed by EOL or a comma.\r\n\r\nCode change in \"binaries\", line 80-81:\r\n```\r\n                  # Add a space to make sure we discover a related directory if it was already scanned\r\n-                FIND=$(echo ${BINARY_PATHS_FOUND} | grep \", ${SCANDIR}\")\r\n+                # Prevent matching sub-strings of paths by matching SCANDIR at EOL or followed by comma\r\n+                FIND=$(echo ${BINARY_PATHS_FOUND} | grep \", ${SCANDIR}\\(,\\|$\\)\")\r\n```"},"comment":{"url":"https://api.github.com/repos/CISOfy/lynis/issues/comments/368332345","html_url":"https://github.com/CISOfy/lynis/issues/526#issuecomment-368332345","issue_url":"https://api.github.com/repos/CISOfy/lynis/issues/526","id":368332345,"user":{"login":"remcojansen","id":224591,"avatar_url":"https://avatars1.githubusercontent.com/u/224591?v=4","gravatar_id":"","url":"https://api.github.com/users/remcojansen","html_url":"https://github.com/remcojansen","followers_url":"https://api.github.com/users/remcojansen/followers","following_url":"https://api.github.com/users/remcojansen/following{/other_user}","gists_url":"https://api.github.com/users/remcojansen/gists{/gist_id}","starred_url":"https://api.github.com/users/remcojansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remcojansen/subscriptions","organizations_url":"https://api.github.com/users/remcojansen/orgs","repos_url":"https://api.github.com/users/remcojansen/repos","events_url":"https://api.github.com/users/remcojansen/events{/privacy}","received_events_url":"https://api.github.com/users/remcojansen/received_events","type":"User","site_admin":false},"created_at":"2018-02-25T18:31:20Z","updated_at":"2018-02-25T18:31:20Z","author_association":"NONE","body":"This was in 261, noticed that you had fixed it in 262 using an additional `grep -v`."}}
{"actor":{"display_login":"remcojansen"}}