diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-23 12:28:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-23 12:28:16 +0000 |
commit | 3a94ceaabb6f0a4cd65cd0ca240e7662dd7d86b2 (patch) | |
tree | f339bc301c0cb845242c5c454132a732a10e8835 /include/ruby | |
parent | 18e76095b9f247d1f53770a2c94503da12bcaa9f (diff) | |
download | ruby-3a94ceaabb6f0a4cd65cd0ca240e7662dd7d86b2.tar.gz ruby-3a94ceaabb6f0a4cd65cd0ca240e7662dd7d86b2.tar.xz ruby-3a94ceaabb6f0a4cd65cd0ca240e7662dd7d86b2.zip |
* file.c (rb_get_path_check): check with given safe level.
* file.c (rb_find_file_ext_safe, rb_find_file_safe): ditto.
* safe.c (rb_insecure_operation): function to raise security error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 9da3f5b9f..98a2264c2 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -427,6 +427,7 @@ int rb_safe_level(void); void rb_set_safe_level(int); void rb_set_safe_level_force(int); void rb_secure_update(VALUE); +NORETURN(void rb_insecure_operation(void)); VALUE rb_errinfo(void); void rb_set_errinfo(VALUE); |