From: Adriano d. S. F. <adr...@gm...> - 2011-07-27 14:35:29
|
On 27/07/2011 11:16, Roman Rokytskyy wrote: >>> Oh, so you have implemented a proper security manager for the Java >>> ESPs? You are great man! :) >> It was difficult and initially was failing only in Linux. But after >> changes it worked ok as far as I can test. > Will it accept also a default security manager with java.policy file? > So that admins can restrict some features for Firebird globally and then > one can restrict other (allowed) features on the per-user basis? > It sets a custom Police and install the default security manager: // Set the police and install the security manager. Policy.setPolicy(new DbPolicy(securityDatabase, adminUser, adminPassword)); System.setSecurityManager(new SecurityManager()); And DbPolice don't restrict classes put in the filesystem. It only secures classes stored in the database. I'm not sure this covers what you ask, but you can insert permissions to PUBLIC in the security database, granting them to all users. Adriano |