Permalink
Browse files

Add java policy.

  • Loading branch information...
1 parent 72bde51 commit 4a47618a81499b338f2ff96871c374a0705ad91c @nbeloglazov nbeloglazov committed Apr 18, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 gen_playgrounds/gen_playgrounds.py
@@ -16,6 +16,8 @@
parser.add_argument("--count", type=int, default=4)
args = parser.parse_args()
path = args.path
+ if path[-1] != '/':
+ path += '/'
if os.path.isdir(path):
# OMG! Careful with it!
@@ -43,6 +45,12 @@
print(profile, file = output)
output.close()
+ # Copy java policy
+ java_policy = open('java.policy').read().format(path)
+ policy_file = open(os.path.join(path, 'java.policy'), 'w')
+ print(java_policy, file = policy_file)
+ policy_file.close()
+
check_call([APPARMOR_INIT, 'restart'])
check_call(["chmod", '777', '-R', path])

0 comments on commit 4a47618

Please sign in to comment.