{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSCAP/openscap/issues/329","repository_url":"https://api.github.com/repos/OpenSCAP/openscap","labels_url":"https://api.github.com/repos/OpenSCAP/openscap/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/OpenSCAP/openscap/issues/329/comments","events_url":"https://api.github.com/repos/OpenSCAP/openscap/issues/329/events","html_url":"https://github.com/OpenSCAP/openscap/issues/329","id":134856645,"number":329,"title":"oscap-docker mount container in current directory","user":{"login":"ybznek","id":2564361,"avatar_url":"https://avatars.githubusercontent.com/u/2564361?v=3","gravatar_id":"","url":"https://api.github.com/users/ybznek","html_url":"https://github.com/ybznek","followers_url":"https://api.github.com/users/ybznek/followers","following_url":"https://api.github.com/users/ybznek/following{/other_user}","gists_url":"https://api.github.com/users/ybznek/gists{/gist_id}","starred_url":"https://api.github.com/users/ybznek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybznek/subscriptions","organizations_url":"https://api.github.com/users/ybznek/orgs","repos_url":"https://api.github.com/users/ybznek/repos","events_url":"https://api.github.com/users/ybznek/events{/privacy}","received_events_url":"https://api.github.com/users/ybznek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ybznek","id":2564361,"avatar_url":"https://avatars.githubusercontent.com/u/2564361?v=3","gravatar_id":"","url":"https://api.github.com/users/ybznek","html_url":"https://github.com/ybznek","followers_url":"https://api.github.com/users/ybznek/followers","following_url":"https://api.github.com/users/ybznek/following{/other_user}","gists_url":"https://api.github.com/users/ybznek/gists{/gist_id}","starred_url":"https://api.github.com/users/ybznek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybznek/subscriptions","organizations_url":"https://api.github.com/users/ybznek/orgs","repos_url":"https://api.github.com/users/ybznek/repos","events_url":"https://api.github.com/users/ybznek/events{/privacy}","received_events_url":"https://api.github.com/users/ybznek/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenSCAP/openscap/milestones/7","html_url":"https://github.com/OpenSCAP/openscap/milestones/1.2.10","labels_url":"https://api.github.com/repos/OpenSCAP/openscap/milestones/7/labels","id":1560978,"number":7,"title":"1.2.10","description":"","creator":{"login":"isimluk","id":6666052,"avatar_url":"https://avatars.githubusercontent.com/u/6666052?v=3","gravatar_id":"","url":"https://api.github.com/users/isimluk","html_url":"https://github.com/isimluk","followers_url":"https://api.github.com/users/isimluk/followers","following_url":"https://api.github.com/users/isimluk/following{/other_user}","gists_url":"https://api.github.com/users/isimluk/gists{/gist_id}","starred_url":"https://api.github.com/users/isimluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isimluk/subscriptions","organizations_url":"https://api.github.com/users/isimluk/orgs","repos_url":"https://api.github.com/users/isimluk/repos","events_url":"https://api.github.com/users/isimluk/events{/privacy}","received_events_url":"https://api.github.com/users/isimluk/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":1,"state":"open","created_at":"2016-02-03T13:11:01Z","updated_at":"2016-03-09T10:35:02Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-02-19T12:43:25Z","updated_at":"2016-03-24T11:42:11Z","closed_at":null,"body":"I think, we should mount container in /tmp or in some directory which is intended to mounting.\r\n\r\n```\r\nzmoravec: /proc 13:37:41\r\n$ sudo oscap-docker image-cve rhel7\r\nTraceback (most recent call last):\r\n  File \"/bin/oscap-docker\", line 108, in <module>\r\n    args.func()\r\n  File \"/bin/oscap-docker\", line 44, in cve_scan\r\n    result = OS.scan_cve(self.args.scan_target, self.unknown_args)\r\n  File \"/usr/lib/python2.7/site-packages/oscap_docker_python/oscap_docker_util.py\", line 193, in scan_cve\r\n    _tmp_mnt_dir = DM.mount(image)\r\n  File \"/usr/lib/python2.7/site-packages/Atomic/mount.py\", line 322, in mount\r\n    driver_mount_fn(identifier, options)\r\n  File \"/usr/lib/python2.7/site-packages/Atomic/mount.py\", line 368, in _mount_devicemapper\r\n    raise MountError(e)\r\nAtomic.mount.MountError: [Errno 2] No such file or directory: '/proc/024f294ea48f3e3b79f9'\r\n```\r\nI cannot run oscap-docker in ```/proc``` directory, because oscap-docker want to mount the image to ```/proc/024f294ea48f3e3b79f9```."},"comment":{"url":"https://api.github.com/repos/OpenSCAP/openscap/issues/comments/200800638","html_url":"https://github.com/OpenSCAP/openscap/issues/329#issuecomment-200800638","issue_url":"https://api.github.com/repos/OpenSCAP/openscap/issues/329","id":200800638,"user":{"login":"ybznek","id":2564361,"avatar_url":"https://avatars.githubusercontent.com/u/2564361?v=3","gravatar_id":"","url":"https://api.github.com/users/ybznek","html_url":"https://github.com/ybznek","followers_url":"https://api.github.com/users/ybznek/followers","following_url":"https://api.github.com/users/ybznek/following{/other_user}","gists_url":"https://api.github.com/users/ybznek/gists{/gist_id}","starred_url":"https://api.github.com/users/ybznek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybznek/subscriptions","organizations_url":"https://api.github.com/users/ybznek/orgs","repos_url":"https://api.github.com/users/ybznek/repos","events_url":"https://api.github.com/users/ybznek/events{/privacy}","received_events_url":"https://api.github.com/users/ybznek/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T11:42:11Z","updated_at":"2016-03-24T11:42:11Z","body":"I've created PRs to oscap-docker. https://github.com/OpenSCAP/openscap/pull/363\r\nPersonally I don't know why mnt_dir is parameter of constructor, because container is not accessible after function ends."}}