Changeset 71d919d


Ignore:
Timestamp:
Oct 31, 2013 9:16:58 AM (6 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
66127c2
Parents:
20590e3
Message:

Add a couple "xauth generate/remove" commands to the base PCDM toolchain. This should let us turn on the xsecurity on the server, and only authorize the current display (:0) by default.

Location:
src-qt4/PCDM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/PCDMd

    r1691c6a r71d919d  
    4444    (sleep 10 ; $vnccmd >/var/log/vncserver 2>/var/log/vncserver) & 
    4545  fi 
    46  
     46  setenv XAUTHORITY ${PCDMAUTHFILE} 
    4747  xinit /usr/local/bin/PCDM-session --once -- :0 -auth ${PCDMAUTHFILE} $XOPTS 
    4848done 
  • src-qt4/PCDM/src/main.cpp

    r1234f7c r71d919d  
    173173  if(runonce){ neverquit = FALSE; } 
    174174  qDebug() << " -- PCDM Session Starting..."; 
     175  system("xauth generate :0 ."); //Using MIT-MAGIC-COOKIE-1 protocol 
     176  //MIT-MAGIC-COOKIE-1 is good enough for our purposes since it is a single-user graphical system with no XDMCP 
    175177  int sid = -1; 
    176178  int pid = fork(); 
     
    198200  if(QFile::exists("/var/run/nologin")){ neverquit = FALSE; }  
    199201 } 
     202 system("xauth remove :0"); 
    200203 return 0; 
    201204} 
Note: See TracChangeset for help on using the changeset viewer.