This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Sxw's profile picture

Quartz OS. True sandboxed users.

Started by Sxw, 23 June 2014 - 08:07 PM
Sxw #1
Posted 23 June 2014 - 10:07 PM
Most OS's are just little graphical shells or windowing systems. Quartz OS is different. Do you share the same computer with someone? Do you want a secure environment to test new programs in? Then Quartz is for you.

What it does:
• Protects your files from other users.
• Lets you use your Pocket PC to boot normal PC's and continue your work on a bigger screen.

How to use:
• Basic CraftOS after login screen.
• Access your home folder
• Put in a disk drive and boot. Use the same exact paths for everything.

Download
Type
pastebin run T5a0dvPN
into your computer with HTTP enabled.

Screenshots:
Spoiler
Edited on 24 June 2014 - 03:07 AM
MineRobber___T #2
Posted 06 July 2017 - 07:05 AM
-snip-
Suggestion: use error(msg,0) in your access denied messages. That makes it so that it simply shows "Access denied" instead of "[string "protect"]:43:Access denied"

Also, instead of disallowing read/write on files, simply use CC's inbuilt read-only files feature.


local oldIRO = fs.isReadOnly
function fs.isReadOnly(sPath)
  if isProtected(sPath) then --not sure how you do this
    return true
  end
  return oldIRO(sPath)
end
Edited on 06 July 2017 - 06:12 AM
The Crazy Phoenix #3
Posted 24 July 2017 - 05:32 PM
Also, instead of disallowing read/write on files, simply use CC's inbuilt read-only files feature.

fs.isReadOnly is not checked by the other fs API functions, which means that even though the edit program doesn't work, the files can still be edited using fs.open.
CLNinja #4
Posted 24 July 2017 - 09:12 PM
Also, instead of disallowing read/write on files, simply use CC's inbuilt read-only files feature.

fs.isReadOnly is not checked by the other fs API functions, which means that even though the edit program doesn't work, the files can still be edited using fs.open.

Then make fs.open use isReadOnly.
xcrafter_40 #5
Posted 15 August 2017 - 04:25 PM
Nice job, Sxw! This looks promising to me!