USB and drive access
Copy as MarkdownUSB and drive access, under Rules in the sidebar, keeps the rules for what a device may use: USB drives, optical drives, monitors, disks and usage limits. NeoDesk on the device fetches its rules every five minutes, applies what its system can, and reports for each kind of rule whether it follows it. The list shows those reports in the Rules column, and Rules followed counts the devices that follow all of theirs.
Not every system can follow every rule. The table below says which ones are followed where, and the rules editor says the same next to each kind of rule. A rule a device can't follow is reported as not supported on this system, so it never counts as followed.
Default rules opens the rules every device follows for each kind it has no rule of its own for. Edit rules on a device row opens that device's rules: a kind that comes from the default says so, and saving a change there gives the device its own rule of that kind. Use the default rules hands a kind back to the default.
A device gets changed rules the next time it fetches them. While the server can't be reached, the rules it had stay in force; when the server answers with no rules, the device puts everything back.
| Rule | Windows | Linux | macOS |
|---|---|---|---|
| USB storage: Blocked | Followed | Followed | Followed |
| USB storage: Only listed devices | Followed on Windows 10 21H2 and later | Followed | Followed |
| Log USB storage, Log disc drive use | Not yet | Not yet | Not yet |
| Optical drives: Blocked | Followed | Followed | Followed |
| Monitors | Not yet | Not yet | Not yet |
| Require disk encryption | Checked (BitLocker) | Checked (LUKS) | Checked (FileVault) |
| Make disks read-only, Watch disk health (S.M.A.R.T.), Hidden partitions | Not yet | Not yet | Not yet |
| CPU limit, Memory limit | Not supported | Followed for each signed-in user | Not supported |
| Bandwidth limit (Mbit/s), Disk space per user (GB), Allowed programs | Not yet | Not yet | Not yet |
Only NeoDesk installed on the device follows rules: the NeoDesk service on Windows (NeoDesk Desktop or NeoDesk Companion), the root service of NeoDesk Desktop or NeoDesk Headless on Linux, and the NeoDesk service on macOS. A copy that runs without being installed reports every rule that limits something as not supported.
NeoDesk Desktop follows the rules only from a server it reaches over HTTPS. NeoDesk Companion and NeoDesk Headless follow them over HTTP too.
Apps released after NeoDesk Desktop 1.6.0-rc.2 and NeoDesk Companion 0.0.15 check disk encryption, limit CPU and memory on Linux, take USB drives plugged in already offline on Windows and refuse the rules below that would lock people out. Older ones report disk encryption and the usage limits as not supported.
"Checked" means NeoDesk doesn't turn encryption on: the device reports the rule as followed when the disks it runs from are encrypted and as not followed when they aren't. A rule with a part the system follows and a part it can't is reported as partly followed.
- Blocked sets the USB storage drivers (USBSTOR and UASPStor) to off, so drives plugged in later don't start, and disables the USB drives plugged in already. Windows asks a drive before it goes: one with open files stays until it's unplugged, and the device reports the rule as partly followed until then.
- Only listed devices uses Windows' device installation restrictions:
USB mass storage is denied by its compatible ID
USB\Class_08, and the plugged-in devices whose vendor and product ID is on the list are allowed by instance ID. This needs the layered evaluation of Windows 10 21H2 or later. When another policy, such as a group policy, manages device installation restrictions already, NeoDesk leaves them to it and reports the rule as not supported. - Optical drives: the Removable Storage Access policy denies reading and writing CD and DVD drives. It holds for drives opened after the change.
- Require disk encryption: BitLocker's protection status of the Windows drive.
- USB storage: a udev rule in
/etc/udev/rules.d/72-neodesk-resource-control.rulestakes the authorization of USB mass storage interfaces away, except for the listed vendor and product IDs. Keyboards, mice and other USB devices aren't touched. - Optical drives: the same file takes the desktop users' access to the drives away, and a polkit rule stops UDisks from mounting discs for them.
- Require disk encryption: the file systems of
/,/usr,/varand/homemust sit on dm-crypt (LUKS), also under LVM. - CPU limit and Memory limit: a drop-in for every user's systemd slice
in
/etc/systemd/system/user-.slice.d/72-neodesk-usage-limits.confsetsCPUQuota(the percent of all processors) andMemoryMax. It applies to sessions that run already. It needs systemd with cgroup v2, which current Ubuntu, Debian and Fedora releases have.
- USB storage and Optical drives: the NeoDesk service refuses to mount USB volumes (except the listed devices) and discs through Disk Arbitration, and unmounts the ones mounted already; discs are ejected. No configuration profile or MDM is needed. The rules hold while the service runs.
- Require disk encryption: whether FileVault is on.
A device refuses a rule that would lock people out and reports it as not supported, with the reason:
- On a computer that runs from a USB drive, Blocked and Only listed devices would take its system disk away, so USB storage stays allowed.
- A CPU limit under 10 percent or a Memory limit under 25 percent would leave too little to sign in. The other limit still applies.
Open Edit rules on the device to read the reason: each kind of rule shows the device's last report on it.
When a rule goes, or the device follows no rule of a kind any more, the device puts back what it changed at its next fetch: the drivers get their earlier start type, the policy values and the registry keys NeoDesk made go, the udev, polkit and systemd files are deleted. Uninstalling NeoDesk does the same.