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 | 8b920b4ac80bf9d7c4193ecff9046b4ae95502e4 (patch) | |
tree | f339bc301c0cb845242c5c454132a732a10e8835 /include/ruby | |
parent | 5be8596447769ece72b58ba21590e83afa622b22 (diff) | |
download | ruby-8b920b4ac80bf9d7c4193ecff9046b4ae95502e4.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/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 9da3f5b9fd..98a2264c25 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); |