racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
454 stars 93 forks source link

changing DrRacket so that, on a case-by-case basis, people can opt-in to loading specific external libraries automatically #302

Open spdegabrielle opened 5 years ago

spdegabrielle commented 5 years ago

changing DrRacket so that, on a case-by-case basis, people can opt-in to loading specific external libraries automatically

See https://groups.google.com/d/msg/racket-users/KkEuF4XPS7Y/fvdftxHVEAAJ

yangh commented 5 years ago

I tried Rob's suggestion, defined a nop function as (define (install-security-guard) #f) to replace the original one in the expanding-place.rkt, then I can load external libraries success now.

Thanks

-- quote --

Robby Findler | Aug 28

I think the best path forward probably involves changing DrRacket so that, on a case-by-case basis, people can opt-in to loading specific external libraries automatically. I've not yet tried to implement that, but if someone wants to, the right starting place is the code that currently disallows the access, which is here:

https://github.com/racket/drracket/blob/5a71d4580d9799a88707eb269879da0635ae97ad/drracket/drracket/private/expanding-place.rkt#L512

There would be changes required to identify that a shared library load was denied, convey that back to the main place where DrRacket runs, then add some way to offer people to allow it, which would then set a preference somehow and the other place could consult that preference to see what is allowed. Something like that.

I like this idea and hope to get to it eventually, but I can't do it right now.

Robby