M
Marcin Kasprzak
hello,
Is it somehow possible to deny access for one application
to a specific resource whereas allow access for the rest
within one policy?
Example:
I would like to prevent one application from accessing disk, if
I will write something like this:
grant {
permission java.util.PropertyPermission "*", "read";
permission java.io.FilePermission "/tmp/foo", "read,write";
};
grant codebase "file:/a/b/c/-" {
permission java.util.PropertyPermission "*", "read";
};
then program located within /a/b/c dir will still have an access to disk
since it will match first rule, I also neither can get rid of
FilePermission in first rule nor get rid of whole rule because
other applications will stop to work. All programs share the same policy.
Is is somehow possible to solve this issue?
Regards,
Is it somehow possible to deny access for one application
to a specific resource whereas allow access for the rest
within one policy?
Example:
I would like to prevent one application from accessing disk, if
I will write something like this:
grant {
permission java.util.PropertyPermission "*", "read";
permission java.io.FilePermission "/tmp/foo", "read,write";
};
grant codebase "file:/a/b/c/-" {
permission java.util.PropertyPermission "*", "read";
};
then program located within /a/b/c dir will still have an access to disk
since it will match first rule, I also neither can get rid of
FilePermission in first rule nor get rid of whole rule because
other applications will stop to work. All programs share the same policy.
Is is somehow possible to solve this issue?
Regards,