1. 28 10月, 2014 2 次提交
    • R
      libcacard: Lock NSS cert db when selecting an applet on an emulated card · 1223bc4c
      Ray Strode 提交于
      When a process in a guest uses an emulated smartcard, libcacard running
      on the host passes the PIN from the guest to the PK11_Authenticate NSS
      function. The first time PK11_Authenticate is called the passed in PIN
      is used to unlock the certificate database. Subsequent calls to
      PK11_Authenticate will transparently succeed, regardless of the passed in
      PIN. This is a convenience for applications provided by NSS.
      
      Of course, the guest may have many applications using the one emulated
      smart card all driven from the same host QEMU process.  That means if a
      user enters the right PIN in one program in the guest, and then enters the
      wrong PIN in another program in the guest, the wrong PIN will still
      successfully unlock the virtual smartcard.
      
      This commit forces the NSS certificate database to be locked anytime an
      applet is selected on an emulated smartcard by calling vcard_emul_logout.
      Signed-off-by: NRay Strode <rstrode@redhat.com>
      Reviewed-By: NRobert Relyea <rrelyea@redhat.com>
      Reviewed-By: NAlon Levy <alevy@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      1223bc4c
    • R
      libcacard: introduce new vcard_emul_logout · f032cfab
      Ray Strode 提交于
      vcard_emul_reset currently only logs NSS out, but there is a TODO
      for potentially sending insertion/removal events when powering down
      or powering up.
      
      For clarity, this commit moves the current guts of vcard_emul_reset to
      a new vcard_emul_logout function which will never send insertion/removal
      events. The vcard_emul_reset function now just calls vcard_emul_logout,
      but also retains its TODO for watching power state transitions and sending
      insertion/removal events.
      Signed-off-by: NRay Strode <rstrode@redhat.com>
      Reviewed-By: NRobert Relyea <rrelyea@redhat.com>
      Reviewed-By: NAlon Levy <alevy@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      f032cfab
  2. 27 10月, 2014 2 次提交
  3. 24 10月, 2014 31 次提交
  4. 23 10月, 2014 5 次提交