I'm refering to the MonetDB feature that allows to create R functions that run embedded in the database. For example, you can do: CREATE FUNCTION rapi00() RETURNS TABLE (d INTEGER) LANGUAGE R { seq(1,10); }; Now, I need my users to create dynamically these user defined functions by letting them enter these on the UI; the application will create the function in the database and a process will run them. Problem is that R allows to run operating system level commands, such as list.files(path=".") or even file.remove("some_file") Will MonetDB allow these external interactions with the operating system, or it runs in a sandbox?
Hi Pablo,
On 08 Sep 2016, at 05:26, Pablo S
wrote: I'm refering to the MonetDB feature that allows to create R functions that run embedded in the database.
For example, you can do:
CREATE FUNCTION rapi00() RETURNS TABLE (d INTEGER) LANGUAGE R { seq(1,10); };
Now, I need my users to create dynamically these user defined functions by letting them enter these on the UI; the application will create the function in the database and a process will run them.
Problem is that R allows to run operating system level commands, such as
list.files(path=".")
or even
file.remove("some_file")
Will MonetDB allow these external interactions with the operating system, or it runs in a sandbox? There is no sandbox. Those things are allowed. This is why creating those functions requires additional privileges.
Hannes
participants (2)
-
Hannes Mühleisen
-
Pablo S