Jul 26 2023
Jul 17 2023
ld: error: undefined symbol: arp_ifinit
this issue is fixed in latest code in a commit last week https://github.com/freebsd/freebsd-src/commit/5684c8783b64e33f0dab058126b36776adcc8e82
Jul 16 2023
Can you please point to correct kernel config to be used?
updated the variable declaration and scope considering NO-INET, NO-INET6, NO-IP.
Jul 15 2023
- ident GENERIC + include LINT-NOINET + include LINT-NOINET6 + include LINT-NOIP + ident MYKERNEL
Someone should do (at least) an amd64 universe build for this to make sure the NO-INET NO-INET6 NO-IP (do we still have that) builds are surviving.
LGTM, but as I don't have a src bit I can't commit this. Anybody else willing to do that?
Jul 8 2023
Melifaro's point about avoiding parsing in the kernel is a good one. What do you think could be improved here?
- Implemented recommended changes
- Made style changes
- modifed the rules_check function to traverse the list in reverse order and stop when first applicable rule (matching IP address) is found. Since, rules defined later determine have higer priority, checking last matching rule is enough.
Jul 6 2023
If you're going to change format, why not use tree, as it feels natural for sysctl. One existing example would be dev.pcm.<number> so following that, we could have security.mac.ipacl.<jid>.<rule> and .family and .address (or maybe .range) as leafs. It is not set in stone that it has to be like that, but given it's sysctl, it feels more natural to me, so please give it a thought. Also, as it is about jail, it would also feel more natural to have this tunables under security.jail.<jid>
The @ character is visually quite large and makes it hard to scan and read for a human.
Jul 3 2023
Manual page LGTM now, will rereview once the source code is finalized.
Jul 2 2023
Overall is a really nice addition and I'd love to have it in base. I have one concern on the rule import/export implementation - happy to discuss this further & left a couple of non-critical comments on the code.
Thank you for working on this!
Jul 1 2023
- rebased the code on top of latest src changes
- made changes to man page as suggested in comments
Jun 19 2023
Hi,
thanks for the comments.
I'll test my patch and wil apply the suggested changes in man page.
Thanks
Jun 16 2023
Some nits in the manual page, which can probably be fixed in a follow-up commit (with .Dd bumped) if the code still works.
Jun 14 2023
Jan 21 2021
This appears to have been accepted but not merged - it would be great to have it get into 13.0 if there's still time
Aug 19 2019
Aug 9 2019
- correct the IP addresses which were not in the documentation range
There's a couple of public IP(v6) addresses in the test scripts. We'd prefer not to have accidents with people. Can you please change them?
Aug 6 2019
- add ipacl entry in tests Makefile
- fix minor issues in mac_ipacl.4
Aug 3 2019
- make tests more structured with atf
- update man page mac_ipacl.4
Jul 31 2019
fix errors shown by mandoc -Tlint for mac_ipacl.4
fix the license and copyrights
Hi, @0mp thanks for the suggestion :).
You may also want to run mandoc -Tlint apart from igor. :)
Jul 30 2019
Jul 28 2019
- move man page to its right place
Jul 25 2019
- Correct the license file for mac_ipacl.c and mac_ipacl.4
- fix Kyua for test shell scripts
- fix errors in mac_ipacl.4 man page
Jul 24 2019
Grat work on the cleanup; I think apart from the license there is very few minor nits left which are acceptable.
Jul 22 2019
I have a few doubts:
- I'm not clear about the license, should the TrustedBSD be included? if yes, then how? Also, I have copied the sysctl_rules from mac_portacl, Is it infringing any copyright as of now? I've read BSD license is very open, can I mention the mac_portacl?
- should #ifdef INET/INET6 be put in mac_policy.h and mac_framework.h?
- after adding INET/INET6 in mac_ipacl, kyua stopped working for test scripts. It gives errors as "ip4_test:main -> broken: Received signal 6 [0.033s] ip6_test:main -> broken: Received signal 6 [0.032s]" As scripts they are testing fine.
fix style issues
fix copyright issue
Hey, thank you for all the updates. There are a few more. Please let me know when you think you are done with all of them and I'll have a full look again.
add #ifdef INET and #ifdef in INET6
fix indentation and style issues
add mac_ipacl entry in kernel conf and modules Makefile
Jul 19 2019
Add copyright and license.
Add a man page for mac_ipacl
indentation and style changes,
moved subnet check code from rules_check to parser,
Jul 17 2019
I think sys/security/mac_ipacl/design_notes.txt and sys/security/mac_ipacl/notes.txt can be removed. Should be turned into a man page really!?
Jul 16 2019
correct the diff file