Commit a3f53e60 by e0d

Using bin_path in the apparmor template

parent e6749580
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
# meta data and details related to the repository including the # meta data and details related to the repository including the
# grader code. # grader code.
# #
# NOTA BENE: Apparmor does not follow symlinks
#
# XQWATCHER_COURSES: # XQWATCHER_COURSES:
# - COURSE: "exampleX-101x" # - COURSE: "exampleX-101x"
# GIT_REPO: "git@github.com:foo/graders-exampleX-101x.git" # GIT_REPO: "git@github.com:foo/graders-exampleX-101x.git"
...@@ -59,7 +61,7 @@ ...@@ -59,7 +61,7 @@
# - HANDLER: "xqueue_watcher.jailedgrader.JailedGrader" # - HANDLER: "xqueue_watcher.jailedgrader.JailedGrader"
# CODEJAIL: # CODEJAIL:
# name: "exampleX-101x" # name: "exampleX-101x"
# bin_path: "{{ xqwatcher_venv_base }}/exampleX-101x/bin/python" # bin_path: "{{ xqwatcher_venv_base }}/exampleX-101x/bin/python2"
# user: "exampleX-101x" # user: "exampleX-101x"
# lang: python2 # lang: python2
# KWARGS: # KWARGS:
...@@ -78,9 +80,9 @@ ...@@ -78,9 +80,9 @@
# - HANDLER: "xqueue_watcher.jailedgrader.JailedGrader" # - HANDLER: "xqueue_watcher.jailedgrader.JailedGrader"
# CODEJAIL: # CODEJAIL:
# name: "exampleX-202x" # name: "exampleX-202x"
# bin_path: "{{ xqwatcher_venv_base }}/exampleX-202x/bin/python" # bin_path: "{{ xqwatcher_venv_base }}/exampleX-202x/bin/python3"
# user: "exampleX-202x" # user: "exampleX-202x"
# lang: python2 # lang: python3
# KWARGS: # KWARGS:
# grader_root: "../data/exampleX-202x/graders/" # grader_root: "../data/exampleX-202x/graders/"
......
#include <tunables/global> #include <tunables/global>
{{ xqwatcher_app_dir }}/venvs/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}/bin/python { {{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.bin_path }} {
#include <abstractions/base> #include <abstractions/base>
{{ xqwatcher_app_dir }}/venvs/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}/** mr, {{ xqwatcher_app_dir }}/venvs/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}/** mr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment