====================
fapolicyd for Debian
====================

The fapolicyd is a package that affects the installed OS.
If user do not set it correctly, user will not be able to operate the OS.
Therefore, Debian packages disable starting the fapolicyd daemon by default.
The steps to get it working are listed below.


Rule files for fapolicyd
=========================
Rules controlled by fapolicyd are stored in /etc/fapolicyd/rules.d/. Sample
rule files are located in the /usr/share/fapolicyd/sample-rules directory.
See man(5) fapolicyd.rules for details.


Setting rules and test
======================

You can copy and test the rules file using the following steps:

```
$ sudo mkdir /etc/fapolicyd.d/rules.d
$ sudo cp /usr/share/fapolicyd/sample-rules/*.rules /etc/fapolicyd/rules.d/.
$ sudo fagenrules
$ sudo fapolicyd --permissive --debug
```

Please check to README.md for test details.

Setting systemd service for starting
====================================

If the test is successful, configure fapolicyd to start as follows:

```
$sudo systemctl enable fapolicyd
$sudo systemctl start fapolicyd
```

-- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Mon, 06 Nov 2023 08:41:54 +0900
