Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt WebKit in chroot

Qt WebKit in chroot

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 1.7k Views
  • 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.
  • H Offline
    H Offline
    hewei
    wrote on last edited by
    #1

    Hi,
    This is my first post regarding the Qt webkit, currently I want to the run the Qt web browser example application inside the chroot, so I have duplicated all the required resource inside the chroot directory. And Qt web browser is working fine if I do the:

    $mount –bind /proc /PATH_TO_CHROOT/proc (so Qt browser inside chroot can access the rootfsys /proc)

    But due to the secure reason, I don’t want do this mount. Without this /proc mount to chroot, qt browser will crash (segmentation fault) when browsing some website such as www.googl.com. I checked on the Qt webkit source code, it indicates it really need to access some file in /proc, such as /proc/self, (actually without mount the rootfsys /proc, chroot directory has own /proc but it is very minimize and seems not sufficient to be used for Qt web browser app.)

    So my question is: Can we run Qt browser inside chroot but without mount the /proc in chroot? Or Can we only expose the required /proc into chroot instead of mount the entire /proc?

    Thanks and best regards

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      No, you definitely need /proc mounted. You can try to bind /proc instead of mounting it, this may work...

      God is Real unless explicitly declared as Integer.

      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