[dnsdist] Some questions about applying for GSoC and newBPFFilter

Y7n05h Y7n05h at protonmail.com
Sun Apr 10 06:54:03 UTC 2022


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sat, Apr 09, 2022 at 12:51:56PM +0000, Y7n05h via dnsdist wrote:
> Hi!
>
> I spent some time this week preparing for and participating in college
> finals (last semester's finals were postponed this week due to
> COVID-19), so not much time on DNSDist. Fortunately, the exam is over.
>
> I was trying to implement https://github.com/PowerDNS/pdns/issues/9690
> and found that typing bpf = newBPFFilter(1024, 1024, 1024) would give
> me an error here.
>
> [string "bpf = newBPFFilter(1024, 1024, 1024)"]:1: Caught exception:
> Error creating a BPF map of size 1024:
> Operation not permitted stack traceback:
>        [C]: in function 'newBPFFilter'
>        [string "bpf = newBPFFilter(1024, 1024, 1024)"]:1: in main chunk
>
>
> I had the same problem on ArchLinux and Ubuntu 21.10.
> They all use the default kernel and run DNSDist as root.
> I wonder why this is.
>
>
> My GSoC proposal has not been submitted due to previous exams.
> I have now submitted a draft, if possible, please suggest some
> revisions.
>
> A copy of the proposal can be accessed from the link below.
> Comments are welcome.
>
> https://docs.google.com/document/d/1_izkQDoEhrv4Ooa4ja4WVUDyLvsNSKE_GgnRUUJPk-g

It really bothers everyone. Thanks Sukhbir Singh for the reply. Also
thanks to ottom for helping me a lot at IRC. This problem was solved
with the help of ottom.

The reason for the error is that I failed to notice the need to use
"addCapabilitiesToRetain(capabilities)" to add capabilities, even
though I run dnsdist with sudo.

--
Best regards,

Y7n05h

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsFzBAEBCAAnBQJiUn8JCZDeeRJfh40URhYhBPNRQaesQ1DUbo17fN55El+H
jRRGAAAfcA/+Ld2n9i9T4wSSMnVJS+a6XRjCDxt9+28WhfDUTQ+3+pr17avp
kQqqs7kzrcVYiSnsdiH0d++A6HPh+uE5rmePVQZDebl7K/tTvol7gzP9Qho5
sTRpHk+J8BW4NGmFy/mPemEQEzIf6kEpbWwYNc9IaqqK6Z1AVlGegMhnTjzv
Ni9GiAQ3XToEkVsSOB0uQJYrOloRx/3nr8WPkFFS9NH7jMT0seyxONxeXAR0
+oxjmyXPt+SG4p6rF1dqQk6kUxW/0JlQuiif04tTILGfDNa2fa2HGk5O/oCi
tmZFx9u/C9moGtZOAJscxdR7Sq/NVfEhevNImLmX7NLkT32o+lSAbFsoIAzD
5eik/uTWxaJQEtYcdF7HYBkWls08uR26mDsftdXO72pkDHuaIFC4VSEviWFX
x8c14GRjmcuYMerigsqwkwoMc5IMwSX9/S4Mnjuumau1Sa9zB0KczQO5IE+4
pzs5yez+1QZQ92R37WFJPtIY2B4d4DNYd2UswOuYbzGuYmvxfssN9PZt95iA
NYDzE/KqGF7Rc00uQ/+ylbhbtTI4CdRC13NJVqxxWRvOTKwX9vT0j9W1IrLb
QihG1biJy2pum86bao3pusr9M5v68KgHU/UKiMmXNOozVnn6DfyHvl2JzF5U
5ZePkV0GczEaR5NcumhiNHtWsAjbrTNEANI=
=85o9
-----END PGP SIGNATURE-----



More information about the dnsdist mailing list