Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1466

Debugging Java Security Managers results in a StackOverflow on boot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • None
    • None
    • Logging, Security
    • None
    • Hide

      Create a policy (/tmp/permit.policy) with the following content:

      // "Permit All" policy for Java Security Manager
      grant {
         permission java.security.AllPermission;
      };
      

      Then add the following to the standalone.conf:

      JAVA_OPTS="$JAVA_OPTS -Djava.security.manager -Djava.security.policy=/tmp/permit.policy -Djava.security.debug=access:failure"
      
      Show
      Create a policy ( /tmp/permit.policy ) with the following content: // "Permit All" policy for Java Security Manager grant { permission java.security.AllPermission; }; Then add the following to the standalone.conf: JAVA_OPTS= "$JAVA_OPTS -Djava.security.manager -Djava.security.policy=/tmp/permit.policy -Djava.security.debug=access:failure"

      Running with a security manager enabled and -Djava.security.debug=access:failure results in a StackOverflow and the server won't boot.

              Unassigned Unassigned
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: