Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-341 AS8 Java Security Manager Container Task
  3. WFLY-400

Deployment descriptor parsing of META-INF/permissions.xml

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 8.0.0.Alpha4
    • None
    • Security Manager
    • None

    Description

      EE 6.2.2.6 Permission declarations must be stored in META-INF/permissions.xml file

      within an EJB, web, or application client archive in order for them to be located
      and subsequently processed by the deployment machinery of the Java EE Product.
      The permissions for a library are the same as the permissions for the code that
      EE.6.2.2.6.2 Permission Declaration Example
      <?xml version="1.0" encoding="UTF-8"?>
      <permissions>
      <permission>
      <classname>java.io.FilePermission</classname>
      <name>/tmp/abc</name>
      <actions>read,write</actions>
      </permission>
      <permission>
      <classname>java.lang.RuntimePermission</classname>
      <name>createClassLoader</name>
      </permission>
      </permissions>

      The EE7 spec draft has a schema for permissions.xml

      Attachments

        Activity

          People

            sguilhen Stefan Guilhen
            anil.saldhana Anil Saldanha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: