ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

Use user HOME when profiling if user supplied and pwd empty #844

Closed tparchambault closed 1 year ago

tparchambault commented 1 year ago

WIP: Discuss if we want to use the shell's pwd; That will need to be more sophisticated if the fapolicy-analyzer is started via the Desktop.

Fixes #819

tparchambault commented 1 year ago

Works as expected on RHEL8.6 via an rpm installation.

I suggest we eliminate the Profiler Session class if it's no longer in play or not in future plans, or rename it to something on the order of Profiler Args. We need to keep its current functionality somewhere so maybe renaming is the way to go. As an abstraction it's time may have passed. or maybe it's used someplace that I'm not aware of...

tparchambault commented 1 year ago

@jw3 or @dorschs57, the code is trivial, so whoever gets to it first. Probably one review will suffice. TIA.

jw3 commented 1 year ago

wiki https://github.com/ctc-oss/fapolicy-analyzer/wiki/User-Guide/c3982cf39ac594c6a21d2634a44bb5d7d2714643

jw3 commented 1 year ago

should have some tests