Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtScript and restricting IOScr
Forum Updated to NodeBB v4.3 + New Features

QtScript and restricting IOScr

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 488 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RudolfVonKrugstein
    wrote on last edited by
    #1

    Hi,

    I need scripting in my Qt App and since I am already using Qt, it makes sense to use QtScript.
    But the script is handling sensitive data and can be potentially be written by a third person. For that reason I require that no data may be send to the outside except by functions which I define.
    So now writing to files, no connecting to the internet, no (something I do not think of right now).

    Is it possible to restrict the QtScript interpreter in this way? For example by not loading some libraries or so?

    Thanks!
    Nathan

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SysTech
      wrote on last edited by
      #2

      I'm not sure this is the right approach but you could provide your own interface functions (overrides so to speak) for the common things you want to prevent. Those overwrites would still allow the script to run but you'd intercept and not allow the desired action or perhaps throw a script exception.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved