A mruby gem to access libapparmor API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mrblib
src
test
tmp
.gitignore
.travis.yml
.travis_build_config.rb
LICENSE
README.md
Rakefile
mrbgem.rake
mruby-apparmor.gem

README.md

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