luajitos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

perms.lua (741B)


      1 -- Permissions configuration file
      2 -- This file is loaded by OrbitManager to determine what permissions are granted
      3 
      4 return {
      5     -- Permission grants
      6     perms = {
      7         ["perms.fs"] = false,      -- Filesystem access
      8         ["perms.os"] = false,       -- OS functions
      9         ["perms.network"] = false,  -- Network access
     10     },
     11 
     12     -- Allowed filesystem paths (supports wildcards)
     13     allowedPaths = {
     14         "/tmp/*",           -- Allow all files in /tmp
     15         "/home/user/data/*" -- Allow all files in /home/user/data
     16     },
     17 
     18     -- Allowed network domains (supports wildcards)
     19     allowedDomains = {
     20         "*.example.com",    -- Allow all subdomains of example.com
     21         "api.trusted.org"   -- Allow specific domain
     22     },
     23 }