Comments (1)
Making uploaded files non-writeable was of course by design, for when using Jobe with Moodle CodeRunner. Even there, though, we occasionally want files to be writeable (e.g. with database questions, where the uploaded file is an sqlite3 database) and we achieve that simply by making a fresh copy of the original file for each test. A solution of that sort might be possible for you?
I wrote the Jobe code many years ago and can't immediately recall the details relating to FACLs. But perhaps the reason that your setfacl failed is that the -d flag removes all existing ACL entries, so that when the compile is attempted (which I think is still done by user www-data) the directory is no longer writeable by www-data? You might be able to fix that by adding another ACL to restore write access by www-data?
However, I recall that setting up the ACLs took quite a lot of thought, so I'd be reluctant to tinker with them myself. I think it would be cleaner to explicitly give jobe (or, better the specific jobe user) write access to each of the downloaded files, as you attempted with your chown approach. I think you can do that simply by prefixing the command with sudo. That should work as www-data is in the sudoers group (which it has to be in order to switch to the jobe user when running runguard. No guarantees, of course :)
Hope that helps. As I say, my memory of this is rather sketchy and I don't have time to work through it all again.
-- Richard
from jobe.
Related Issues (20)
- how can i install jobe in Nginx? HOT 1
- runguard/runguard: cannot start ` sh': Resource temporarily unavailable HOT 3
- Octave will not run HOT 2
- Privilege escalation using cputime parameter and runguard HOT 2
- How to support the SQL? HOT 2
- C++ with compilearg -std=c++11 give a 'virtual memory exhausted: Cannot allocate memory' error HOT 3
- `sh': Resource temporarily unavailable HOT 1
- How to send multiple inputs on API request HOT 1
- How to pass SYSTEM.IN Param HOT 1
- Privilege escalation using sourcefilename HOT 1
- Matlab is crashing (segmentation violation detected) HOT 3
- Security problem with Jobe HOT 1
- How to get the code execution time and the memory consumed by the code
- PHP8 compatibility HOT 1
- testsubmit "Memory limit exceeded in C (seg faults)" HOT 1
- Issue with runguard HOT 3
- Issues with JobeInaBox HOT 2
- How to add SQL support? HOT 2
- Runguard error HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jobe.