Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
a3f53e60
Commit
a3f53e60
authored
Oct 03, 2016
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using bin_path in the apparmor template
parent
e6749580
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
playbooks/roles/xqwatcher/tasks/main.yml
+5
-3
playbooks/roles/xqwatcher/templates/etc/apparmor.d/code.jail.j2
+1
-1
No files found.
playbooks/roles/xqwatcher/tasks/main.yml
View file @
a3f53e60
...
...
@@ -44,6 +44,8 @@
# meta data and details related to the repository including the
# grader code.
#
# NOTA BENE: Apparmor does not follow symlinks
#
# XQWATCHER_COURSES:
# - COURSE: "exampleX-101x"
# GIT_REPO: "git@github.com:foo/graders-exampleX-101x.git"
...
...
@@ -59,7 +61,7 @@
# - HANDLER: "xqueue_watcher.jailedgrader.JailedGrader"
# CODEJAIL:
# name: "exampleX-101x"
# bin_path: "{{ xqwatcher_venv_base }}/exampleX-101x/bin/python"
# bin_path: "{{ xqwatcher_venv_base }}/exampleX-101x/bin/python
2
"
# user: "exampleX-101x"
# lang: python2
# KWARGS:
...
...
@@ -78,9 +80,9 @@
# - HANDLER: "xqueue_watcher.jailedgrader.JailedGrader"
# CODEJAIL:
# name: "exampleX-202x"
# bin_path: "{{ xqwatcher_venv_base }}/exampleX-202x/bin/python"
# bin_path: "{{ xqwatcher_venv_base }}/exampleX-202x/bin/python
3
"
# user: "exampleX-202x"
# lang: python
2
# lang: python
3
# KWARGS:
# grader_root: "../data/exampleX-202x/graders/"
...
...
playbooks/roles/xqwatcher/templates/etc/apparmor.d/code.jail.j2
View file @
a3f53e60
#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>
{{ xqwatcher_app_dir }}/venvs/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}/** mr,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment