Questions tagged [policyfiles]

43 questions
0
votes
1 answer

Testing resource cookbook with Policyfiles & ChefSpec

This problem arises when you: Write a library cookbook (i.e. it has no recipes apart from a no-op default.rb) Create a test cookbook under test/fixtures/cookbooks/ to exercise the library. That is…
Hedgehog
  • 5,487
  • 4
  • 36
  • 43
0
votes
1 answer

Java SecurityManager: Good introduction to policy files

Can you recommend a good introduction to non-trivial policy files for the standard Java SecurityManager? Are there examples that go beyond what the Java website offers? Or maybe someone describes how to secure a Tomcat that runs a whole bunch of…
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
0
votes
1 answer

chef client using policyfile : could not find recipe default for cookbook

I am using chef open source version 13.6.4 and get stuck on a problem I can't solve with Policyfile. I created one simple Policyfile based on the simplest possible cookbook given below (cookbooks\test_prospero\default.rb) root_install_path =…
0
votes
2 answers

How do I get around "Filename too long" error when running `chef install` on Windows 10?

I'm transitioning from berkshelf to the Policyfile workflow, and everything was running fine until I attempted to resolve all the dependencies. Two of my dependencies are from git, so when I run chef install in the cookbook directory, I get the…
tzrlk
  • 848
  • 1
  • 13
  • 30
0
votes
0 answers

Java RMI 'java.rmi.ConnectException: Connection refused to host: 127.0.1.1;'

I'm attempting to setup a test application using the java RMI to achieve basic communication and I'm having issues getting it to operate over LAN. I saw a thread with the same error as me but I couldn't find a solution for my issue in there. In the…
MAWood
  • 99
  • 1
  • 13
0
votes
1 answer

Java Policy file as an argument to Process Builder

I am using a simple way to implement a custom policy file, which works fine when implemented via cmd. List < String > paramsExecute = new ArrayList < String > (); paramsExecute.add("java"); paramsExecute.add("-cp"); …
joey rohan
  • 3,505
  • 5
  • 33
  • 70
0
votes
0 answers

java.util.PropertyPermission when a applet error occurs

I am writing a Java applet to implement BT streaming and some kind of errors occurs. Following is the Java error details: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at…
0
votes
2 answers

What's python complaining about here?

I'm trying to run Adobe's sample python policy server script, linked to here: http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html I'm getting the following error: # python flashpolicyd.py --file=policy.xml File…
justkevin
  • 3,089
  • 3
  • 28
  • 33
0
votes
1 answer

Random port numbers showing up during debugging of RMI application

I have written a sample RMI application that simply calculates the sum of two numbers. My server.policy looks like: grant { permission java.net.SocketPermission "123.4.567.890:1024-", "accept, resolve"; }; and my client.policy looks like: grant…
rage
  • 1,777
  • 5
  • 25
  • 36
0
votes
1 answer

requesting a .java.policy file from URL security risk

My client wants to use an applet to do drag and drop file transfers from the browser. We have everything working for the most part, but the .java.policy file granting the applet file system access needs to be uploaded to every client in order for…
tjb1982
  • 2,257
  • 2
  • 26
  • 39
0
votes
0 answers

setting SecurityManager Permissions from the java code

I am running a Applet which does Socket connection i am getting Exception java.security.AccessControlException: access denied (java.net.SocketPermission xxx.xxx.xxx.xxx:80 connect,resolve) I googled and found out that it is because of Java's…
HkFreaKuser1673718
  • 759
  • 4
  • 13
  • 31
0
votes
1 answer

AccessControlException with applet classes in the same codebase

I have three classes, one called Capture, AppletLogging and AbstractJLabel. I have set the following permissions in my %USERPROFILE%/.java.policy file: grant codeBase "file:/C:/project/abc/target/test-classes/-" { permission…
mario
  • 25
  • 1
  • 8
  • 18
-1
votes
1 answer

Applet runs in eclipse but not in browser - java security

Below is applet code, it uses jna.jar (https://github.com/twall/jna) to access a DLL file in system32. import javax.swing.*; import javax.print.*; import java.security.*; import java.util.ArrayList; import com.sun.jna.Library; import…
Sudesh
  • 1,129
  • 3
  • 14
  • 29
1 2
3