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

XDG feature #901

Closed jw3 closed 1 year ago

jw3 commented 1 year ago

Move XDG functionality behind a cargo feature that disables it by default.

The intent here is to remove XDG support from deployment, while keeping it as an option for development environments.

Without XDG enabled the following are used:

To use XDG in a development environment ensure the FEATURES file is present in the root of the workspace and add a line for xdg to it. This file is gitignored, which makes it the most convenient way of configuring XDG per workspace.

Closes #900

jw3 commented 1 year ago

Supports #875

jw3 commented 1 year ago

Behavior exhibited after rpm install is that the /etc/fapolicy-analyzer dir will be implicitly created and used for configuration, while the logs and data will remain in XDG land. This is because the Python side is not updated in this PR, and the data and logs are invoked from Python.

The remainder will be resolved in #875 or another supporting PR.

Post #875 there will be no need for the implicit creation of /etc/fapolicy-analyzer as it will be managed by the rpm at that point.