]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agoDon't use cf_parent(inst->cs)
Arran Cudbard-Bell [Tue, 14 May 2024 02:24:45 +0000 (20:24 -0600)] 
Don't use cf_parent(inst->cs)

2 years agoRevert "Tests pass with mprotect enabled locally... let's see if it works with CI...
Arran Cudbard-Bell [Tue, 14 May 2024 01:01:31 +0000 (19:01 -0600)] 
Revert "Tests pass with mprotect enabled locally... let's see if it works with CI now"

This reverts commit 050120df5ff9e22378ee4b760a7a3a6da8d0b9f3.

2 years agoNetwork should own the drectory listener too
Arran Cudbard-Bell [Tue, 14 May 2024 01:00:37 +0000 (19:00 -0600)] 
Network should own the drectory listener too

2 years agoTests pass with mprotect enabled locally... let's see if it works with CI now
Arran Cudbard-Bell [Tue, 14 May 2024 00:48:46 +0000 (18:48 -0600)] 
Tests pass with mprotect enabled locally... let's see if it works with CI now

2 years agoadd write_blocked flag to packet bio
Alan T. DeKok [Mon, 13 May 2024 15:27:03 +0000 (11:27 -0400)] 
add write_blocked flag to packet bio

along with a flush API.  So that the individual protocols don't
have to do that.

and have the memory bio return IO_WOULD_BLOCK if it can't flush
the pending data.

2 years agostart of re-implementing CoA server functionality
Alan T. DeKok [Mon, 13 May 2024 15:28:43 +0000 (11:28 -0400)] 
start of re-implementing CoA server functionality

2 years agoupdate comments and documentation
Alan T. DeKok [Mon, 13 May 2024 14:59:50 +0000 (10:59 -0400)] 
update comments and documentation

2 years agoupdate doxygen
Alan T. DeKok [Mon, 13 May 2024 14:59:29 +0000 (10:59 -0400)] 
update doxygen

2 years agonotes on AD allowing "bind as user" without passwords
Alan T. DeKok [Mon, 13 May 2024 14:58:18 +0000 (10:58 -0400)] 
notes on AD allowing "bind as user" without passwords

2 years agoGet the listen section from the parent module
Arran Cudbard-Bell [Tue, 14 May 2024 00:29:23 +0000 (18:29 -0600)] 
Get the listen section from the parent module

2 years agoDup the parent config section before calling conf_parse for child transport modules
Arran Cudbard-Bell [Tue, 14 May 2024 00:25:26 +0000 (18:25 -0600)] 
Dup the parent config section before calling conf_parse for child transport modules

2 years agoDon't always copy the parsed flag when duping pairs
Arran Cudbard-Bell [Tue, 14 May 2024 00:24:51 +0000 (18:24 -0600)] 
Don't always copy the parsed flag when duping pairs

2 years agoAdd logging functions for sections and pairs
Arran Cudbard-Bell [Tue, 14 May 2024 00:24:01 +0000 (18:24 -0600)] 
Add logging functions for sections and pairs

2 years agoDon't try and free local thread instance data if it's not been allocated
Arran Cudbard-Bell [Mon, 13 May 2024 23:17:31 +0000 (17:17 -0600)] 
Don't try and free local thread instance data if it's not been allocated

2 years agoShouldn't use perr here...
Arran Cudbard-Bell [Mon, 13 May 2024 23:14:35 +0000 (17:14 -0600)] 
Shouldn't use perr here...

2 years agoCall submoule instantiate for proto modules before calling master.instantiate
Arran Cudbard-Bell [Mon, 13 May 2024 20:59:54 +0000 (14:59 -0600)] 
Call submoule instantiate for proto modules before calling master.instantiate

2 years agoReorder args in mod_network_get
Arran Cudbard-Bell [Mon, 13 May 2024 20:59:22 +0000 (14:59 -0600)] 
Reorder args in mod_network_get

2 years agoMake the default radclient tests run with dynamic clients
Arran Cudbard-Bell [Mon, 13 May 2024 20:29:37 +0000 (14:29 -0600)] 
Make the default radclient tests run with dynamic clients

2 years agoMake cntrl-c work again on macOS, after we do a TLS handhshake
Arran Cudbard-Bell [Mon, 13 May 2024 19:44:51 +0000 (13:44 -0600)] 
Make cntrl-c work again on macOS, after we do a TLS handhshake

2 years agoFix time tracking assert when the server is blocked processing children
Arran Cudbard-Bell [Mon, 13 May 2024 18:53:59 +0000 (12:53 -0600)] 
Fix time tracking assert when the server is blocked processing children

2 years agoTypo
Arran Cudbard-Bell [Mon, 13 May 2024 18:52:38 +0000 (12:52 -0600)] 
Typo

2 years agoSplit the backtrace function
Arran Cudbard-Bell [Mon, 13 May 2024 18:52:27 +0000 (12:52 -0600)] 
Split the backtrace function

2 years agoAdd the same shim for all modules
Arran Cudbard-Bell [Mon, 13 May 2024 15:58:13 +0000 (09:58 -0600)] 
Add the same shim for all modules

2 years agoMore predictable signal handling
Arran Cudbard-Bell [Mon, 13 May 2024 15:45:07 +0000 (09:45 -0600)] 
More predictable signal handling

2 years agoPre-populate some additional fields in app_io
Arran Cudbard-Bell [Mon, 13 May 2024 14:49:57 +0000 (08:49 -0600)] 
Pre-populate some additional fields in app_io

2 years agoSame shim for tacacs
Arran Cudbard-Bell [Mon, 13 May 2024 14:34:58 +0000 (08:34 -0600)] 
Same shim for tacacs

2 years agoDisable protection temporarily
Arran Cudbard-Bell [Mon, 13 May 2024 14:27:39 +0000 (08:27 -0600)] 
Disable protection temporarily

2 years agoHack in shim for proto_radius to populate io.app_io
Arran Cudbard-Bell [Mon, 13 May 2024 14:16:30 +0000 (08:16 -0600)] 
Hack in shim for proto_radius to populate io.app_io

2 years agoVestigal code that was never actually implemented, and likely doesn't need to be
Arran Cudbard-Bell [Mon, 13 May 2024 13:39:39 +0000 (07:39 -0600)] 
Vestigal code that was never actually implemented, and likely doesn't need to be

2 years agoBetter self signalling
Arran Cudbard-Bell [Mon, 13 May 2024 13:39:18 +0000 (07:39 -0600)] 
Better self signalling

2 years agouseful, but not _that_ useful
Arran Cudbard-Bell [Mon, 13 May 2024 04:18:09 +0000 (22:18 -0600)] 
useful, but not _that_ useful

2 years agoFix random ungraceful exits
Arran Cudbard-Bell [Mon, 13 May 2024 04:07:57 +0000 (22:07 -0600)] 
Fix random ungraceful exits

2 years agoNot just workers...
Arran Cudbard-Bell [Mon, 13 May 2024 04:06:23 +0000 (22:06 -0600)] 
Not just workers...

2 years agoWrite a message saying we tried to signal ourselves but failed
Arran Cudbard-Bell [Mon, 13 May 2024 04:06:17 +0000 (22:06 -0600)] 
Write a message saying we tried to signal ourselves but failed

2 years agoFixes to get listeners to work with mprotect
Arran Cudbard-Bell [Mon, 13 May 2024 00:06:05 +0000 (18:06 -0600)] 
Fixes to get listeners to work with mprotect

2 years agoChange how the listeners are parented to avoid tripping up mprotect
Arran Cudbard-Bell [Sun, 12 May 2024 23:30:30 +0000 (17:30 -0600)] 
Change how the listeners are parented to avoid tripping up mprotect

2 years agoFixup proto_detail so it works again
Arran Cudbard-Bell [Sun, 12 May 2024 23:24:12 +0000 (17:24 -0600)] 
Fixup proto_detail so it works again

2 years agoUse the standard instantiate functions for listen and process modules
Arran Cudbard-Bell [Sun, 12 May 2024 23:04:00 +0000 (17:04 -0600)] 
Use the standard instantiate functions for listen and process modules

2 years agoRework phase masking for lists, and add debug functions
Arran Cudbard-Bell [Sun, 12 May 2024 23:03:01 +0000 (17:03 -0600)] 
Rework phase masking for lists, and add debug functions

2 years agomigrate/combine proto module bootstrance and instantiate functions
Arran Cudbard-Bell [Sun, 12 May 2024 19:58:42 +0000 (13:58 -0600)] 
migrate/combine proto module bootstrance and instantiate functions

2 years agoPerform master 'bootstrapping' in the instantiation function instead
Arran Cudbard-Bell [Sun, 12 May 2024 19:27:08 +0000 (13:27 -0600)] 
Perform master 'bootstrapping' in the instantiation function instead

Because master.c doesn't actually bootstrap anything...

2 years agoReplace yum with dnf
Nick Porter [Mon, 13 May 2024 08:00:11 +0000 (09:00 +0100)] 
Replace yum with dnf

The default since RHEL 8, which is the oldest FRv4 builds on.

2 years agoF'ing copilot
Arran Cudbard-Bell [Sun, 12 May 2024 18:17:58 +0000 (12:17 -0600)] 
F'ing copilot

2 years agoExplicitly instantiate SQL drivers before starting connections
Arran Cudbard-Bell [Sun, 12 May 2024 18:15:25 +0000 (12:15 -0600)] 
Explicitly instantiate SQL drivers before starting connections

2 years agoFix const issue in rlm_sql
Arran Cudbard-Bell [Sun, 12 May 2024 18:08:25 +0000 (12:08 -0600)] 
Fix const issue in rlm_sql

2 years agoFix const inssue in rlm_csv
Arran Cudbard-Bell [Sun, 12 May 2024 17:50:57 +0000 (11:50 -0600)] 
Fix const inssue in rlm_csv

2 years agoTypo in rlm_ldap
Arran Cudbard-Bell [Sun, 12 May 2024 17:50:13 +0000 (11:50 -0600)] 
Typo in rlm_ldap

2 years agoPoper fix for dynamic instantiation of the cache module
Arran Cudbard-Bell [Sun, 12 May 2024 17:43:05 +0000 (11:43 -0600)] 
Poper fix for dynamic instantiation of the cache module

2 years agoInst not used in winbind
Arran Cudbard-Bell [Sun, 12 May 2024 17:39:41 +0000 (11:39 -0600)] 
Inst not used in winbind

2 years agoFix how we print global messages in rlm_icmp
Arran Cudbard-Bell [Sun, 12 May 2024 17:28:32 +0000 (11:28 -0600)] 
Fix how we print global messages in rlm_icmp

2 years agoFixup rlm_modules that did instantiatey things in bootstrap
Arran Cudbard-Bell [Sun, 12 May 2024 17:08:01 +0000 (11:08 -0600)] 
Fixup rlm_modules that did instantiatey things in bootstrap

2 years agoUnload the radius.secret.verify xlat
Arran Cudbard-Bell [Sun, 12 May 2024 16:56:50 +0000 (10:56 -0600)] 
Unload the radius.secret.verify xlat

2 years agoMore tests for switch
Arran Cudbard-Bell [Sun, 12 May 2024 16:56:21 +0000 (10:56 -0600)] 
More tests for switch

2 years agoRename listen to li
Arran Cudbard-Bell [Sun, 12 May 2024 16:55:43 +0000 (10:55 -0600)] 
Rename listen to li

2 years agoAdd "boot" data which can be modified in the bootstrap phase
Arran Cudbard-Bell [Sun, 12 May 2024 16:55:18 +0000 (10:55 -0600)] 
Add "boot" data which can be modified in the bootstrap phase

Add MODULE_TYPE_DYNAMIC_UNSAFE for things that shouldn't be dynamically instantiated.  This also disables the protections on the boot/data chunks.

2 years agoTweak to process virtual server sections before calling the instantiate function
Arran Cudbard-Bell [Sun, 12 May 2024 16:53:36 +0000 (10:53 -0600)] 
Tweak to process virtual server sections before calling the instantiate function

2 years agoDon't allocate xlat function memory directly in the context we were passed
Arran Cudbard-Bell [Sun, 12 May 2024 16:51:30 +0000 (10:51 -0600)] 
Don't allocate xlat function memory directly in the context we were passed

This memory can be mprotected, and when the xlat functions get balanced in the rbtree we get a SEGV

2 years agoAdd a manual unregister function to the map proc code
Arran Cudbard-Bell [Sun, 12 May 2024 16:49:43 +0000 (10:49 -0600)] 
Add a manual unregister function to the map proc code

- Constify instance data
- Take a separate ctx for map proc allocation
- Link map proc memory using a linking ctx instead of allocating it directly

2 years agoMove unlang, request, and xlat initialisation to atexit handlers
Arran Cudbard-Bell [Sun, 12 May 2024 16:48:51 +0000 (10:48 -0600)] 
Move unlang, request, and xlat initialisation to atexit handlers

The atexit handlers just run in the reverse order to which they were created, so unless the code is doing something weird and incestuous it makes cleanup much simpler

2 years agoMake page aligned pools easier to use
Arran Cudbard-Bell [Sun, 12 May 2024 16:47:19 +0000 (10:47 -0600)] 
Make page aligned pools easier to use

2 years agoRemove useless module flags
Arran Cudbard-Bell [Sat, 11 May 2024 20:37:09 +0000 (14:37 -0600)] 
Remove useless module flags

2 years agotry to satisfy clang scan, too
Alan T. DeKok [Sat, 11 May 2024 00:16:25 +0000 (20:16 -0400)] 
try to satisfy clang scan, too

2 years agocleanups for CID #1597277 and CID #1597276
Alan T. DeKok [Sat, 11 May 2024 00:04:13 +0000 (20:04 -0400)] 
cleanups for CID #1597277 and CID #1597276

delete assert, as the loop over "mi" doesn't change "a" or "b"

make the "if" conditions for early exit a little clearer

2 years agoadd missing unlock. CID #1597275
Alan T. DeKok [Sat, 11 May 2024 00:03:52 +0000 (20:03 -0400)] 
add missing unlock.  CID #1597275

2 years agoRemove manual bootstrapping, it's not needed
Arran Cudbard-Bell [Fri, 10 May 2024 15:43:55 +0000 (09:43 -0600)] 
Remove manual bootstrapping, it's not needed

2 years agoShift control socket commands to the top
Arran Cudbard-Bell [Fri, 10 May 2024 15:35:43 +0000 (09:35 -0600)] 
Shift control socket commands to the top

2 years agoEnsure yum is installed for rpm Docker builds
Nick Porter [Fri, 10 May 2024 09:48:07 +0000 (10:48 +0100)] 
Ensure yum is installed for rpm Docker builds

2 years agoRemove unused var
Arran Cudbard-Bell [Fri, 10 May 2024 06:55:33 +0000 (00:55 -0600)] 
Remove unused var

2 years agoCorrect const issues
Arran Cudbard-Bell [Fri, 10 May 2024 06:52:43 +0000 (00:52 -0600)] 
Correct const issues

2 years agoAdd rlm module specific data lookup function
Arran Cudbard-Bell [Fri, 10 May 2024 06:45:47 +0000 (00:45 -0600)] 
Add rlm module specific data lookup function

2 years agoMissed substitution
Arran Cudbard-Bell [Fri, 10 May 2024 06:10:50 +0000 (00:10 -0600)] 
Missed substitution

2 years agoFix module instance data lookup
Arran Cudbard-Bell [Fri, 10 May 2024 06:09:32 +0000 (00:09 -0600)] 
Fix module instance data lookup

2 years agorm ;
Arran Cudbard-Bell [Fri, 10 May 2024 05:53:58 +0000 (23:53 -0600)] 
rm ;

2 years agoUse new thread-local list for client connections
Arran Cudbard-Bell [Fri, 10 May 2024 05:21:10 +0000 (23:21 -0600)] 
Use new thread-local list for client connections

2 years agoAllow variants of module lists
Arran Cudbard-Bell [Fri, 10 May 2024 04:21:14 +0000 (22:21 -0600)] 
Allow variants of module lists

For now we support global module lists and thread-local lists

2 years agoFix includes
Arran Cudbard-Bell [Fri, 10 May 2024 04:20:37 +0000 (22:20 -0600)] 
Fix includes

2 years agoUse the prefix of the deepest module when loading submodules
Arran Cudbard-Bell [Fri, 10 May 2024 04:17:42 +0000 (22:17 -0600)] 
Use the prefix of the deepest module when loading submodules

2 years agoGive virtual servers a meaningful name so it's less confusing debugging instance...
Arran Cudbard-Bell [Fri, 10 May 2024 04:16:58 +0000 (22:16 -0600)] 
Give virtual servers a meaningful name so it's less confusing debugging instance name creation

2 years agoUse correct/shallower public symbol pointer for submodules
Arran Cudbard-Bell [Thu, 9 May 2024 16:50:10 +0000 (10:50 -0600)] 
Use correct/shallower public symbol pointer for submodules

2 years agoUse mi instead of inst to refer to the module instance, instance is extremely overused
Arran Cudbard-Bell [Thu, 9 May 2024 15:33:48 +0000 (09:33 -0600)] 
Use mi instead of inst to refer to the module instance, instance is extremely overused

2 years agoMerge dl_module_instance code with module_instance
Arran Cudbard-Bell [Thu, 9 May 2024 15:22:34 +0000 (09:22 -0600)] 
Merge dl_module_instance code with module_instance

Collapsing a completely useless layer of abstraction and making everything significantly easier to understand and use.

2 years agoName field unused
Arran Cudbard-Bell [Thu, 9 May 2024 15:01:16 +0000 (09:01 -0600)] 
Name field unused

2 years agoMake the dl_module code threadsafe in regards to loading and unloading modules
Arran Cudbard-Bell [Wed, 8 May 2024 23:43:06 +0000 (17:43 -0600)] 
Make the dl_module code threadsafe in regards to loading and unloading modules

Ugh... I hate writing this sort of code, but unless we want to have a master "load and unload" modules thread, that we signal using message passing, this is unfortunately the way we need to do it.

Note: This only protects the dl_loader, not the instances.

2 years agoUse transport parsing callback
Arran Cudbard-Bell [Tue, 7 May 2024 04:17:32 +0000 (22:17 -0600)] 
Use transport parsing callback

2 years agoExplicitly enable/disable developer in RPM builds
Arran Cudbard-Bell [Thu, 9 May 2024 17:26:59 +0000 (11:26 -0600)] 
Explicitly enable/disable developer in RPM builds

2 years agoCheck allocation
Arran Cudbard-Bell [Tue, 7 May 2024 22:39:35 +0000 (16:39 -0600)] 
Check allocation

2 years agoFix cosmetic issue where the prefix of modules wasn't being printed
Arran Cudbard-Bell [Tue, 7 May 2024 16:07:19 +0000 (10:07 -0600)] 
Fix cosmetic issue where the prefix of modules wasn't being printed

2 years agoAdd callback for parsing transports
Arran Cudbard-Bell [Tue, 7 May 2024 04:17:18 +0000 (22:17 -0600)] 
Add callback for parsing transports

2 years agoCheck allocations
Arran Cudbard-Bell [Tue, 7 May 2024 04:14:54 +0000 (22:14 -0600)] 
Check allocations

2 years agoFormatting
Arran Cudbard-Bell [Tue, 7 May 2024 04:14:45 +0000 (22:14 -0600)] 
Formatting

2 years agoAdd test for LDAP profile from multiple objects
Nick Porter [Tue, 7 May 2024 17:11:52 +0000 (18:11 +0100)] 
Add test for LDAP profile from multiple objects

2 years agoApply all returned LDAP profile objects
Nick Porter [Tue, 7 May 2024 17:11:15 +0000 (18:11 +0100)] 
Apply all returned LDAP profile objects

2 years agoMissed field
Arran Cudbard-Bell [Tue, 7 May 2024 00:55:41 +0000 (18:55 -0600)] 
Missed field

2 years agoBetter detail file reader errors
Arran Cudbard-Bell [Tue, 7 May 2024 00:51:34 +0000 (18:51 -0600)] 
Better detail file reader errors

2 years agoFix linux debugger check
Arran Cudbard-Bell [Tue, 7 May 2024 00:04:22 +0000 (18:04 -0600)] 
Fix linux debugger check

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Mon, 6 May 2024 09:35:07 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Mon, 6 May 2024 09:34:56 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Mon, 6 May 2024 09:34:52 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Mon, 6 May 2024 09:34:49 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Mon, 6 May 2024 09:34:46 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar