Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Using qws server in multi-app multi-user environment ....

    Mobile and Embedded
    1
    1
    1312
    Loading More Posts
    • 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.
    • M
      Momo3000 last edited by

      Hello,

      I am trying to devise an application architecture on ARM-9/Linux based board that will allow single Qt embedded (4.8.3) server application to accept connections from number of Qt client applications, each running as a separate user.
      I tried running server app (-qws) as root and connecting client app owned by valid Linux user "guest". That failed on access to the control socket.

      Server creates AP/PF_UNIX socket and sets SO_PASSCRED option to "true" on that control socket. I guess that means that client application must authenticate itself to the server on startup using ancillary message (SCM_CREDENTIALS).

      If that is the case, how do I do that using existing, legitimate Qt features/options (rather then trying to hack Qt source tree)?
      Is this even possible? If not, what are the alternatives?

      Thanks in advance for any help that might be coming ....

      1 Reply Last reply Reply Quote 0
      • First post
        Last post