Security Settings
The COMSOL software includes security settings for controlling access to, for example, system properties, file systems, and runtime security settings from methods and external libraries, primarily for use in applications created using the Application Builder.
If you have selected the Set permanent security policy for applications check box when installing the COMSOL software, none of these security settings are available.
The following security settings are available on the Security page in the Preferences dialog box:
Select the Allow batch jobs check box to allow batch jobs. This restriction affects the Batch, Batch Sweep, Cluster Computing, and Cluster Sweep nodes in the COMSOL Desktop model tree.
Select the Allow running methods check box to allow running applications that include methods. If you clear this check box, it is not possible to run methods in applications.
Select Allow running applications to allow running applications in general. If you clear this check box, it is not possible to run any applications.
Select the Allow external processes check box to allow applications to start external processes on the computer. This includes using the built-in executeOS() method.
From the Allow external libraries list, choose No (the default), Yes, or Ask to allow external C libraries to be called from methods in an application, directly or by first asking, or not.
From the Allow external MATLAB® functions list, choose No (the default), Yes, or Ask to call functions written in MATLAB (requires LiveLink™ for MATLAB®), directly or by first asking, or not. If you change this preference setting, click Clear Functions in the Settings window for a MATLAB function node before running a simulation that calls MATLAB functions.
By default, all check boxes above except the Allow external processes, Allow external libraries, and Allow external MATLAB® functions check boxes are selected.
On the Methods and Java Libraries subpage:
The Enforce security restrictions check box is selected by default. If selected, this check box enforces the following restrictions on methods and Java libraries:
-
Select the Allow access to system properties check box to read and write values to system properties such as System.getProperty("cs.np"), which can be used to determine the number of cores that COMSOL Multiphysics currently uses.
-
Select the Allow changes to the runtime system check box to allow methods and Java libraries to change the runtime system — for instance, by modifying class loaders.
-
From the File system access list, select Temporary and application files (the default) to restrict methods and Java libraries to only have access to such files, or select All files to allow methods and Java libraries to access all files that you have permissions to access on the file system.
-
Select the Allow access to network sockets check box to allow methods and Java libraries to open sockets for network access.
-
Select the Allow control of the network authentication method check box to allow methods and Java libraries to control the network authentication method used.
-
Select the Allow access to classes through reflection check box to allow access to all members in a class through reflection.
-
Select the Allow access to runtime security settings check box to allow methods and Java libraries to access security settings.
All check boxes above are cleared by default, enforcing those security restrictions.