My question is more along the lines of:
Portlet A uses SB and has a MyFileLocalServiceImpl class that reads/writes ${java.io.tmpdir}/myfile.xml. So in portlet A I add the security-manager-files-read and security-manager-files-write entries, and Portlet A's security manager is happy.
Now Portlet B uses the service from portlet A and calls the appropriate method on MyFileLocalServiceUtil. Portlet B's liferay-plugin-package.properties file will have the security-manager-services entry so that it can invoke the service from portlet A.
The question is, though, will portlet B also need to have the security-manager-files-read and security-manager-files-write privileges in order to actually invoke the service? When inside the method in MyFileLocalServiceImpl, which security manager is in effect when called from portlet B, is it B's security manager or A's?
Por favor, faça login para denunciar.