freebsd-ports/security/ruby-acl/pkg-descr
Pav Lucistnik dea2c27d67 - Revive security/ruby-acl port and unbreak it
- Reset maintainership

PR:		ports/76917
Submitted by:	IWATSUKI Hiroyuki <don@na.rim.or.jp>
2005-07-20 12:28:42 +00:00

17 lines
330 B
Text

Ruby-acl provides Access Control List checks.
list = %w(
deny all
allow 192.168.1.*
allow 127.0.0.1
)
acl = ACL.new(list, ACL::DENY_ALLOW)
...
ns = soc.accept
unless acl.allow_socket?(ns)
# forbidden
end
Author: Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
WWW: http://www.ruby-lang.org/raa/list.rhtml?name=acl