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"
FATA[0000] Container start failed: [8] System error: no such file or directory
ApplyProfile function received the right string ( profile name) from config.json for loading the profile
Upon executing C.aa_change_onexec(cName), it says " No such file or directory". Infact the apparmor profile existed in rootfs under /etc/apparmor.d/