Running COMSOL Multiphysics > Running COMSOL Multiphysics > Security Settings

Security Settings
COMSOL 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 Allow external processes and libraries to allow applications to start external processes on the computer. This includes using the built-in executeOS() method. You need to select this check box to call functions written in MATLAB (requires LiveLink™ for MATLAB®). This setting also allows external C libraries to be called from methods in an application.
Select Allow running application methods 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.
By default, all check boxes above except the Allow external processes and libraries check box are selected.
Under Methods and Java libraries:
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.