Skip to content

Commit

Permalink
Remove all grants from plugin-security.policy
Browse files Browse the repository at this point in the history
We do not need any grants in `plugin-security.policy`. There is currently no PrivilegedAction block.
Removal of grants simplify plugin installation a bit because no user confirmation is needed any longer.

This is not a breaking change because when plugins are installed from script then usually `-b` option is used anyway, which skips the confirmation step.

Closes: #131

Signed-off-by: Lukáš Vlček <[email protected]>
  • Loading branch information
lukas-vlcek committed Jan 30, 2023
1 parent d196e6e commit 48506d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/plugin-metadata/plugin-security.policy
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@
*/

grant {
permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
// No privileged operations are required, see #131
};

0 comments on commit 48506d4

Please sign in to comment.