It would be good to share as much code as possible with macosx/linux
add LSP support on macosx:
1) Add new installer switch: LOCAL_SECURITY_POLICY_URL (string, contains URL)
2) the switch validation/file caching
Value of the option should be validated at the begining (after parsing install switches, before any changes):
- checks if the url provided is valid
- if the url is http(s) urk, download the file,
if the value is file url, copy the file
put the file to temporary location (must be deleted on installer exit)
- check the file is not empty
3) pass LSP option to deploy:
3a) put the LSP file to predefined system-wide location (/Library/Application/Support/Oracle/Java/LSP/policy.jar ?)
set the file access to the LSP directory and policy.jar:
- read access for everyone;
- read/write access for admin user/group (chmod 664)
3b) pass LSP option(s) the same way as WEB_JAVA & WEB_JAVA_SECURITY_LEVEL options
if deploy report error - need to log it (don't stop installation process (current implementation goes this way))
add LSP support on macosx:
1) Add new installer switch: LOCAL_SECURITY_POLICY_URL (string, contains URL)
2) the switch validation/file caching
Value of the option should be validated at the begining (after parsing install switches, before any changes):
- checks if the url provided is valid
- if the url is http(s) urk, download the file,
if the value is file url, copy the file
put the file to temporary location (must be deleted on installer exit)
- check the file is not empty
3) pass LSP option to deploy:
3a) put the LSP file to predefined system-wide location (/Library/Application/Support/Oracle/Java/LSP/policy.jar ?)
set the file access to the LSP directory and policy.jar:
- read access for everyone;
- read/write access for admin user/group (chmod 664)
3b) pass LSP option(s) the same way as WEB_JAVA & WEB_JAVA_SECURITY_LEVEL options
if deploy report error - need to log it (don't stop installation process (current implementation goes this way))
- relates to
-
JDK-8013599 Local Security Policy (Unix)
-
- Closed
-
-
JDK-8013601 Local Security Policy (linux)
-
- Closed
-