Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 668 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 668 Bytes

mruby-apparmor Build Status

A mruby gem to access libapparmor API

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

  # ... (snip) ...

  conf.gem :github => 'haconiwa/mruby-apparmor'
end

example

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"

License

AppArmor is under LGPL. mruby-apparmor itself is under the MIT License:

  • see LICENSE file