Feature #2036

Feature #44: Implement basic introspection support

Include id of executing user in process information

Added by J. Moringen over 6 years ago. Updated over 6 years ago.

Status:ResolvedStart date:09/30/2014
Priority:LowDue date:
Assignee:-% Done:

100%

Category:Introspection
Target version:rsb-0.11

Description

Tasks

  • Protocol ✓
  • C++ ✓
  • Python ✓
  • Java ✓
  • Common Lisp ✓
  • Introspection tools (✓)

Associated revisions

Revision 8d74f01f
Added by J. Moringen over 6 years ago

Support executing user in src/introspection/*.lisp

refs #2036

  • src/introspection/platform-common.lisp (%current-user): new function;
    determine account name via passwd database
    (current-user): new function; call `%current-user' with error fallback
    behavior
  • src/introspection/model.lisp (process-info::executing-user): new slot;
    stores login- or account-name of the user executing the process
    (current-process-info): populate executing-user slot
  • src/introspection/conversion.lisp
    (define-introspection-converter hello): process executing-user slot
  • src/introspection/remote-introspection.lisp
    (ensure-process integer host-entry process-info): process
    executing-user slot
  • src/introspection/package.lisp (package rsb.introspection): added
    exported symbol process-info-executing-user
  • test/introspection/model.lisp
    (define-simple-model-class-tests process-info): test supplying
    :executing-user initarg
    (test introspection-model-process-info-root::current-process-info/smoke):
    check value of executing-user slot

Revision 840983a4
Added by J. Moringen over 6 years ago

Added executing_user in proto/rsb/protocol/operatingsystem/Process.proto

refs #2036

  • proto/rsb/protocol/operatingsystem/Process.proto
    (Process::executing_user): new field; login- or account-name of the
    user executing the process

Revision 0f840800
Added by J. Moringen over 6 years ago

Added executing user in rsb/introspection/__init__.py

refs #2036

  • rsb/introspection/__init__.py (ProcessInfo.__init__): added
    executingUser parameter; added corresponding attributes
    (ProcessInfo.getExecutingUser): new method; return executing user
    (ProcessInfo.executingUser): corresponding property
    (IntrospectionSender.sendHello): include executing user in event
  • test/introspectiontest.py (ProcessInfoTest.testConstructionDefaults):
    check executingUser property

Revision f632407a
Added by J. Moringen over 6 years ago

Send login-name of executing user in src/rsb/introspection/*.{h,cpp}

refs #2036

  • src/rsb/introspection/Model.{h,cpp} (tryCurrentExecutingUser): new
    function; return login-name of executing user or the empty string in
    case of errors
    (ProcessInfo::ProcessInfo): added executingUser parameter
    (ProcessInfo::executingUser): new member variable; login-name of
    executing user
    (ProcessInfo::getExecutingUser): new method; associated getter
  • src/rsb/introspection/IntrospectionSender.cpp
    (IntrospectionSender::sendHello): add login-name of executing user to
    Hello message, if available

Revision df388e59
Added by J. Moringen over 6 years ago

Added missing generic function process-info-state in src/introspection/protocol.lisp

refs #2036

Had been omitted in initial commit.

  • src/introspection/protocol.lisp (process-info-state): new generic
    function; return login- or account-name of executing user

Revision 3d260d33
Added by J. Moringen over 6 years ago

Support printing executing user in introspect/print.lisp

refs #2036

  • introspect/print.lisp (print-process-info-details-markup): print name
    of executing user, if available

Revision 3e248a79
Added by J. Moringen over 6 years ago

Backport: Support printing executing user in introspect/print.lisp

refs #2036

  • introspect/print.lisp (print-process-info-details-markup): print name
    of executing user, if available

History

#1 Updated by J. Moringen over 6 years ago

  • Description updated (diff)
  • % Done changed from 0 to 10

#2 Updated by J. Moringen over 6 years ago

  • Status changed from New to In Progress

#3 Updated by J. Moringen over 6 years ago

  • % Done changed from 10 to 30

#4 Updated by J. Moringen over 6 years ago

  • Description updated (diff)
  • Target version changed from rsb-0.12 to rsb-0.11
  • % Done changed from 30 to 60

#5 Updated by J. Moringen over 6 years ago

  • Description updated (diff)
  • % Done changed from 60 to 70

#6 Updated by J. Moringen over 6 years ago

  • Description updated (diff)
  • Assignee deleted (J. Moringen)
  • % Done changed from 70 to 80

#7 Updated by S. Wrede over 6 years ago

  • Description updated (diff)
  • Status changed from In Progress to Feedback
  • % Done changed from 80 to 100

#8 Updated by J. Moringen over 6 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF