{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/runc/issues/169","labels_url":"https://api.github.com/repos/opencontainers/runc/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/runc/issues/169/comments","events_url":"https://api.github.com/repos/opencontainers/runc/issues/169/events","html_url":"https://github.com/opencontainers/runc/issues/169","id":98619382,"number":169,"title":"Apparmor profile in config.json fails to launch the container","user":{"login":"rajasec","id":8536762,"avatar_url":"https://avatars.githubusercontent.com/u/8536762?v=3","gravatar_id":"","url":"https://api.github.com/users/rajasec","html_url":"https://github.com/rajasec","followers_url":"https://api.github.com/users/rajasec/followers","following_url":"https://api.github.com/users/rajasec/following{/other_user}","gists_url":"https://api.github.com/users/rajasec/gists{/gist_id}","starred_url":"https://api.github.com/users/rajasec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajasec/subscriptions","organizations_url":"https://api.github.com/users/rajasec/orgs","repos_url":"https://api.github.com/users/rajasec/repos","events_url":"https://api.github.com/users/rajasec/events{/privacy}","received_events_url":"https://api.github.com/users/rajasec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-02T16:11:47Z","updated_at":"2015-09-17T17:41:04Z","closed_at":null,"body":"In my ubuntu system based on 15.04  Kernel : 3.19.0-15. I've enabled the Apparmor compilation  so that it is not compiling libcontainer/apparmor/apparmor_disabled.go. After adding the apparmor_profile path in config.json and spec.go. I've tried to start the container, it fails to start the container saying \"No such file or directory\"\r\nFATA[0000] Container start failed: [8] System error: no such file or directory\r\n\r\nApplyProfile function received the right string ( profile name) from config.json for loading the profile\r\nUpon executing  C.aa_change_onexec(cName), it says \" No such file or directory\". Infact the apparmor profile existed in rootfs under /etc/apparmor.d/\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/opencontainers/runc/issues/comments/141162737","html_url":"https://github.com/opencontainers/runc/issues/169#issuecomment-141162737","issue_url":"https://api.github.com/repos/opencontainers/runc/issues/169","id":141162737,"user":{"login":"rajasec","id":8536762,"avatar_url":"https://avatars.githubusercontent.com/u/8536762?v=3","gravatar_id":"","url":"https://api.github.com/users/rajasec","html_url":"https://github.com/rajasec","followers_url":"https://api.github.com/users/rajasec/followers","following_url":"https://api.github.com/users/rajasec/following{/other_user}","gists_url":"https://api.github.com/users/rajasec/gists{/gist_id}","starred_url":"https://api.github.com/users/rajasec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajasec/subscriptions","organizations_url":"https://api.github.com/users/rajasec/orgs","repos_url":"https://api.github.com/users/rajasec/repos","events_url":"https://api.github.com/users/rajasec/events{/privacy}","received_events_url":"https://api.github.com/users/rajasec/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T17:41:04Z","updated_at":"2015-09-17T17:41:04Z","body":"Yes I'm compiling with apparmor build tag for runc (it went for loading the profile and failed to load)\r\nMoreover I'm able to load the profile via apparmor_parser. It is loading successfully inside the container.\r\nI'm using the /etc/apparmor.d/<profile name> for loading the profiles.\r\nThanks for your quick response.\r\n"}}