Disable drives

Bug #595362 reported by Joshua Hesketh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eExam
New
Critical
Unassigned

Bug Description

The purpose of the "drives" module is to control which disks the user can access. In an exam the most likely scenario is that they are only allowed access to the thumb drive with the questions and answers. Internal hard drives, SD/MMC, CD/DVD etc will need to be disabled.

Disable drives based off type, label or uuid. Basic pseudo code:
# Loop each drive
# Check drive type is NOT in blacklist OR IS in whitelist
# Check drive label is NOT in blacklist OR IS in whitelist
# Check drive UUID is NOT in blacklist OR IS in whitelist

This should allow three different level of settings. The Label and UUID should be easy to implement. The most useful one, type, is also the hardest. We need to be able to have a config like:
disallow_types: all # (cdrom, sd, thumb, hdd, etc)
allow_types: thumb # This will overwrite the disallow rule

Revision history for this message
Joshua Hesketh (joshua.hesketh) wrote :

Better psuedo code:
for each device:
  if in type_blacklist:
     block = true
  if in type_whitelist:
     block = false
.... repeat for label and uuid

Changed in eexam:
assignee: nobody → Mitchell Smith (mjs-ots)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers