A NSS module to provide parental controls to DNS queries via malcontent (https://gitlab.freedesktop.org/pwithnall/malcontent).
Go to file
Matteo Settenvini b7641f4e46
Ensure libclang is present on CI
2022-09-05 23:31:34 +02:00
.vscode Add basic test 2022-08-13 17:04:22 +02:00
LICENSES Add short readme 2022-08-23 11:19:13 +02:00
src Finish implementation of gethostbyname 2022-09-05 23:15:29 +02:00
tests Finish implementation of gethostbyname 2022-09-05 23:15:29 +02:00
.gitignore Finish implementation of gethostbyname 2022-09-05 23:15:29 +02:00
.gitlab-ci.yml Add CI files 2022-09-05 23:19:47 +02:00
.rusty-hook.toml Add license info and commit hooks 2022-08-13 10:44:46 +02:00
CMakeLists.txt Move to rust stable, introduce mock for dbus in tests 2022-08-18 13:59:11 +02:00
Cargo.toml Finish implementation of gethostbyname 2022-09-05 23:15:29 +02:00
Dockerfile Ensure libclang is present on CI 2022-09-05 23:31:34 +02:00
README.md Add short readme 2022-08-23 11:19:13 +02:00
README.md.license Add short readme 2022-08-23 11:19:13 +02:00
build.rs Use an async context for module and refactor 2022-08-21 14:47:37 +02:00
deny.toml Add TLS support to resolver, implement DBus ifaces 2022-08-24 16:18:09 +02:00
wrapper.hpp Use an async context for module and refactor 2022-08-21 14:47:37 +02:00

README.md

Malcontent NSS Module

Disclaimer: this is a proof-of-concept and a work in progress. As such, the code is still rather ugly, especially when handling C structures.

This is a proof of concept for a NSS module allowing to perform parental controls when querying the system interfaces for hostname resolution (DNS). It is designed to be integrated with Malcontent.

When the code will be ready, a system administrator would install the module after compiling it through CMake. Then they would add it to the hosts entry in /etc/nsswitch.conf. For instance:

hosts: files myhostname malcontent resolve [!UNAVAIL=return] dns

Note how malcontent precedes both systemd's resolve and the libc dns modules.

Parental control configuration would happen through the Malcontent client or GUI.