title: Wildfly Security Manager : Permission failed for org.jboss.vfs.VirtualFilePermission
body: <p>I have My JBOSS Wildfly set up. I have a problem when accessing a certain part in my code that I get an error with the message as bellow:</p>
  
  <pre><code>Caused by: java.security.AccessControlException: WFSM000001: Permission check failed for ("org.jboss.vfs.VirtualFilePermission
  </code></pre>
  
  <p>I have my standalone.xml config with permissions as bellow:</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:security-manager:1.0"&gt;
              &lt;deployment-permissions&gt;
                  &lt;minimum-set&gt;
                      &lt;permission class="java.security.AllPermission"/&gt;
                      &lt;permission class="org.jboss.naming.JndiPermission"/&gt;
                      &lt;permission class="java.lang.RuntimePermission" name="createClassLoader"/&gt;
                      &lt;permission class="java.lang.RuntimePermission" name="getClassLoader"/&gt;
                      &lt;permission class="java.io.FilePermission" name="/tmp" actions="read,write"/&gt;
                      &lt;permission class="java.io.FilePermission" name="/opt" actions="read"/&gt;
                  &lt;/minimum-set&gt;
                  &lt;maximum-set&gt;
                      &lt;permission class="java.security.AllPermission"/&gt;
                  &lt;/maximum-set&gt;
              &lt;/deployment-permissions&gt;
          &lt;/subsystem&gt;
  </code></pre>
  
  <p>Can anyone help to figure out what is missing in the config? or why am I receiving this error?</p>
  
  <p>Thanks.</p>