Feature #2036
Feature #44: Implement basic introspection support
Include id of executing user in process information
Status: | Resolved | Start date: | 09/30/2014 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | Introspection | |||
Target version: | rsb-0.11 |
Associated revisions
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
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
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
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
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
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
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 9 years ago
- Description updated (diff)
- % Done changed from 0 to 10
#2 Updated by J. Moringen over 9 years ago
- Status changed from New to In Progress
#3 Updated by J. Moringen over 9 years ago
- % Done changed from 10 to 30
#4 Updated by J. Moringen over 9 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 9 years ago
- Description updated (diff)
- % Done changed from 60 to 70
#6 Updated by J. Moringen over 9 years ago
- Description updated (diff)
- Assignee deleted (
J. Moringen) - % Done changed from 70 to 80
#7 Updated by S. Wrede over 9 years ago
- Description updated (diff)
- Status changed from In Progress to Feedback
- % Done changed from 80 to 100
#8 Updated by J. Moringen over 9 years ago
- Status changed from Feedback to Resolved