A mruby gem to access libapparmor API
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'haconiwa/mruby-apparmor'
end
profile_name = "haconiwa-foobar"
AppArmor.change_profile(profile_name)
## if you want to apply profile on container:
AppArmor.change_onexec(profile_name)
exec "/bin/bash"
AppArmor is under LGPL. mruby-apparmor itself is under the MIT License:
- see LICENSE file