Commit Graph

1237 Commits

Author SHA1 Message Date
d6e3d580fd helpers: do not allow interactive authorization
We want to use the authorize_async() flow up front to authorize the
connection, and then make all other API fail immediately to reduce the
chance that we block the peers.
2019-05-29 15:13:00 -07:00
7291b14575 memory: get FD using the SysprofHelpers 2019-05-29 15:13:00 -07:00
9d72203687 sysprofd: add API to get a FD for a file in proc
This is useful for optimized parsing of proc files such as necessary by
the memory source to seek() back to the start (instead of re-opening a
new file).
2019-05-29 15:13:00 -07:00
16bc6f970e libsysprof: remove dead code 2019-05-29 15:13:00 -07:00
297f1b70f5 helpers: allow /sys/ access too 2019-05-29 15:13:00 -07:00
70ace7f160 libsysprof: fix kernel symbols init 2019-05-29 15:13:00 -07:00
df1217bbb8 libsysprof: use helpers to get proc info from host 2019-05-29 15:13:00 -07:00
36ecfd3dd1 libsysprof: add async variant for proc source 2019-05-29 15:13:00 -07:00
6bb7eded8a libsysprof: use daemon to get unredacted process info 2019-05-29 15:13:00 -07:00
858d91e6a9 libsysprof: allow creating model item from gvariant info 2019-05-29 15:13:00 -07:00
2f5de2a499 libsysprof: whitespace 2019-05-29 15:13:00 -07:00
b4fa5ed04f libsysprof: add helper to get process info array 2019-05-29 15:13:00 -07:00
4678273958 libsysprof: avoid remote call if we can 2019-05-29 15:13:00 -07:00
63969f0c09 add helper to check if we can see pids 2019-05-29 15:13:00 -07:00
907064583f libsysprof-ui: dont reload if the listbox is not visible 2019-05-29 15:13:00 -07:00
d7014ac4e8 libsysprof-ui: reload process model when not in whole-system 2019-05-29 15:13:00 -07:00
a10b7759af libsysprof-ui: whitespace 2019-05-29 15:13:00 -07:00
4915ede4b2 libsysprof: whitespace 2019-05-29 15:13:00 -07:00
71d64d6732 libsysprof: use macro to preserve types 2019-05-29 15:13:00 -07:00
84fc3f3c0f libsysprof: use g_clear_handle_id() 2019-05-29 15:13:00 -07:00
f6980c0b9e libsysprof: add autoclean backports 2019-05-29 15:13:00 -07:00
ee5bf79e6c libsysprof: wait until first queue_reload() to load
We might need to query the server, so this ensures that we don't authenticate
the polkit session until needed.
2019-05-29 15:13:00 -07:00
f9152e8dde libsysprof-ui: whitespace 2019-05-29 15:13:00 -07:00
dfdebf115f sysprofd: add comm and do some postprocessing 2019-05-29 15:13:00 -07:00
ecbca06013 sysprofd: add hook to postprocess cmdline 2019-05-29 15:13:00 -07:00
3310d83257 sysprofd: use add_value()
Otherwise we need another GVariantBuilder
2019-05-29 15:13:00 -07:00
bee7321ab4 libsysprof: whitespace 2019-05-29 15:13:00 -07:00
a318a135c6 sysprofd: fix include 2019-05-29 15:13:00 -07:00
d6d4c0d140 sysprofd: start on optimized getprocessinfo helper
Calling all the individual function calls to get process information would
be considerably inefficient, so we can coalesce a bunch of that and change
our process-model implementation (and proc source) to use this.
2019-05-29 15:13:00 -07:00
c51e12c497 libsysprof: cancel if we fail auth
To not do this would leave us in a very bad loop asking for too many
pieces of information.
2019-05-29 15:13:00 -07:00
0fe8a688d1 libsysprof: adopt FD that was created for us 2019-05-29 15:13:00 -07:00
de1d9f7131 libsysprof: style cleanup 2019-05-29 15:13:00 -07:00
40cafe03de libsysprof: simplify error message 2019-05-29 15:13:00 -07:00
73426ff051 libsysprof: whitespace 2019-05-29 15:13:00 -07:00
869755de16 libsysprof: cleanup 2019-05-29 15:13:00 -07:00
200f7484d1 sysprofd: remove consistency check
We can try and just let the syscall tell us what happened.
2019-05-29 15:13:00 -07:00
22e121b564 libsysprof: remove dead code 2019-05-29 15:13:00 -07:00
e822128121 libsysprof: authorize proxy during start 2019-05-29 15:13:00 -07:00
d6266e54b1 fix gsetting name 2019-05-29 15:13:00 -07:00
59917c3e15 build: remove sysprof2 references 2019-05-29 15:13:00 -07:00
61f01802f0 build: fix old polkit check 2019-05-29 15:13:00 -07:00
aafcc0a57a sysprofd: remove debug code 2019-05-29 15:13:00 -07:00
280f4b9415 libsysprof: backport autoptr cleanups when necessary 2019-05-29 15:13:00 -07:00
623d7ad027 build: cleanup dependency checking
We always require polkit now, so that we can fallback when we fail to
communicate with the peer.
2019-05-29 15:13:00 -07:00
eacdc47c34 libsysprof: fix weak ref usage 2019-05-29 15:13:00 -07:00
44e06da7ec libsysprof-ui: check for NULL 2019-05-29 15:13:00 -07:00
05bfc21fce libsysprof: only use sync form for perf counter
We already have async auth workflow, so we only need the synchronous
form here, which makes things a bit less complicated.
2019-05-29 15:13:00 -07:00
ec603e1221 perf: remove authorization and proxy usage from counter
This belongs in other abstractions to be more general.
2019-05-29 15:13:00 -07:00
eff557db59 libsysprof: remove authorization from perf source
This will be done more generically from the local profiler
later on.
2019-05-29 15:13:00 -07:00
037ac96425 whitespace cleanup 2019-05-29 15:13:00 -07:00