Closed fflorent closed 2 years ago
Ping @BDouze if you want to take a look at it :)
!testme
I made some tests and it seems to be fine with RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
Here is what I have tested :
Thanks @BDouze!
@ericgaspar Thanks for your review! :)
If it looks good to you and one approval is enough to merge this PR, I'll let you do this as I don't have the write access.
Problem
Aims to be a fix for #283 keeping restrictions.
Solution
The issue is caused by the invocation of
os.networkInterfaces()
in thecacheable-lookup
module: https://github.com/szmarczak/cacheable-lookup/blob/45b18daf9f0c8406691fad81188e956641e2309d/source/index.js#L41This function lists the interfaces and thus needs
AF_NETLINK
.In order to test, you may try this systemd service:
PR Status
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)