[apparmor] [patch] abstractions/ruby: add /usr/local/ and vendor_ruby paths
Felix Geyer
debfx at ubuntu.com
Mon Apr 28 21:38:42 UTC 2014
The Debian and Ubuntu Ruby 1.9.1 package is configured like this:
--with-vendordir='/usr/lib/ruby/vendor_ruby' --with-sitedir='/usr/local/lib/site_ruby
These paths are missing in the ruby abstraction.
=== modified file 'profiles/apparmor.d/abstractions/ruby'
--- profiles/apparmor.d/abstractions/ruby 2013-07-01 18:06:52 +0000
+++ profiles/apparmor.d/abstractions/ruby 2014-04-28 21:32:52 +0000
@@ -13,9 +13,9 @@
/usr/lib{,32,64}/ruby/1.[89]{.[0-9],}/**.rb r,
/usr/lib{,32,64}/ruby/1.[89]{.[0-9],}/*-linux/**.so mr,
- /usr/lib{,32,64}/ruby/site_ruby/1.[89]{.[0-9],}/ r,
- /usr/lib{,32,64}/ruby/site_ruby/1.[89]{.[0-9],}/**.rb r,
- /usr/lib{,32,64}/ruby/site_ruby/1.[89]{.[0-9],}/*-linux/**.so mr,
+ /usr/{,local/}lib{,32,64}/ruby/{site,vendor}_ruby/1.[89]{.[0-9],}/ r,
+ /usr/{,local/}lib{,32,64}/ruby/{site,vendor}_ruby/1.[89]{.[0-9],}/**.rb r,
+ /usr/{,local/}lib{,32,64}/ruby/{site,vendor}_ruby/1.[89]{.[0-9],}/*-linux/**.so mr,
/usr/lib{,32,64}/ruby/gems/1.[89]{.[0-9],}/ r,
/usr/lib{,32,64}/ruby/gems/1.[89]{.[0-9],}/** r,
More information about the AppArmor
mailing list