Project

General

Profile

Bug #1115

$SAFE=1でのrequireがSecurityErrorになる

Added by znz (Kazuhiro NISHIYAMA) over 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.1p0 (2009-02-02 revision 21960) [i686-linux]
Backport:
[ruby-dev:37926]

Description

=begin
[ruby-dev:37843]の件がredmineにチケットとして登録されていなかったので、登録します。

現在わかっている条件は以下の2つです。

  1. *.soをrequireする。

% ruby-1.9.1 -ve '$SAFE=1;p require "zlib"'
ruby 1.9.1p0 (2009-02-02 revision 21960) [i686-linux]
-e:1:in require': Insecure operation - require (SecurityError)
from -e:1:in
'
%

  1. 何かgemをインストールした状態で何でもいいのでrequireする。

% ruby-1.9.1 -ve '$SAFE=1;p require "English"'
ruby 1.9.1p0 (2009-02-02 revision 21960) [i686-linux]
-e:1:in require': Insecure operation - require (SecurityError)
from -e:1:in
'
%

何もgemをインストールしていなければ成功します。

% ruby-1.9.1 -ve '$SAFE=1;p require "English"'
ruby 1.9.1p0 (2009-02-02 revision 21960) [i686-linux]
true
%
=end

Associated revisions

Revision c3546c76
Added by hsbt (Hiroshi SHIBATA) over 4 years ago

  • lib/rubygems: Update to RubyGems HEAD(5c3b6f3). Fixed #1156, #1142, #1115, #1142, #1139 on rubygems/rubygems
  • test/rubygems: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 49511
Added by hsbt (Hiroshi SHIBATA) over 4 years ago

  • lib/rubygems: Update to RubyGems HEAD(5c3b6f3). Fixed #1156, #1142, #1115, #1142, #1139 on rubygems/rubygems
  • test/rubygems: ditto.

Revision 49511
Added by hsbt (Hiroshi SHIBATA) over 4 years ago

  • lib/rubygems: Update to RubyGems HEAD(5c3b6f3). Fixed #1156, #1142, #1115, #1142, #1139 on rubygems/rubygems
  • test/rubygems: ditto.

Revision 49511
Added by hsbt (Hiroshi SHIBATA) over 4 years ago

  • lib/rubygems: Update to RubyGems HEAD(5c3b6f3). Fixed #1156, #1142, #1115, #1142, #1139 on rubygems/rubygems
  • test/rubygems: ditto.

Revision 49511
Added by hsbt (Hiroshi SHIBATA) over 4 years ago

  • lib/rubygems: Update to RubyGems HEAD(5c3b6f3). Fixed #1156, #1142, #1115, #1142, #1139 on rubygems/rubygems
  • test/rubygems: ditto.

Revision 49511
Added by hsbt (Hiroshi SHIBATA) over 4 years ago

  • lib/rubygems: Update to RubyGems HEAD(5c3b6f3). Fixed #1156, #1142, #1115, #1142, #1139 on rubygems/rubygems
  • test/rubygems: ditto.

History

#1

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Assignee set to yugui (Yuki Sonoda)
  • Target version set to 1.9.1

=begin
Applied in changeset r21917 in the trunk.
=end

#2

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Status changed from Open to Assigned

=begin

=end

#3

Updated by yugui (Yuki Sonoda) almost 10 years ago

  • Status changed from Assigned to Closed

=begin

=end

Also available in: Atom PDF