]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
15 months agoRemove a call to module_rlm_by_name
Arran Cudbard-Bell [Wed, 15 May 2024 21:31:26 +0000 (15:31 -0600)] 
Remove a call to module_rlm_by_name

15 months agoRemove all the module_rlm_by_data lookup functions
Arran Cudbard-Bell [Wed, 15 May 2024 21:24:20 +0000 (15:24 -0600)] 
Remove all the module_rlm_by_data lookup functions

15 months agoUpdate links in the howto for EAP
Arran Cudbard-Bell [Wed, 15 May 2024 19:33:55 +0000 (13:33 -0600)] 
Update links in the howto for EAP

15 months agostats is now in inst->mutable
Nick Porter [Wed, 15 May 2024 19:38:22 +0000 (20:38 +0100)] 
stats is now in inst->mutable

15 months agoMore mutable data in stats
Arran Cudbard-Bell [Wed, 15 May 2024 16:57:17 +0000 (10:57 -0600)] 
More mutable data in stats

15 months agoDon't write to instance data in rlm_stats
Arran Cudbard-Bell [Wed, 15 May 2024 16:27:27 +0000 (10:27 -0600)] 
Don't write to instance data in rlm_stats

15 months agoadd and set write pause / resume callbacks
Alan T. DeKok [Wed, 15 May 2024 13:21:30 +0000 (09:21 -0400)] 
add and set write pause / resume callbacks

15 months agotypo
Alan T. DeKok [Wed, 15 May 2024 13:21:18 +0000 (09:21 -0400)] 
typo

15 months agomove fd_info to client_info structure
Alan T. DeKok [Wed, 15 May 2024 12:56:47 +0000 (08:56 -0400)] 
move fd_info to client_info structure

15 months agoadd framework for RADIUS client bio write blocked / resume callbacks
Alan T. DeKok [Tue, 14 May 2024 23:59:04 +0000 (19:59 -0400)] 
add framework for RADIUS client bio write blocked / resume callbacks

15 months agoWe need to resume iterating from the previous configuration item
Arran Cudbard-Bell [Wed, 15 May 2024 04:58:11 +0000 (22:58 -0600)] 
We need to resume iterating from the previous configuration item

15 months agoAdd dynamic module list
Arran Cudbard-Bell [Wed, 15 May 2024 04:27:32 +0000 (22:27 -0600)] 
Add dynamic module list

15 months agoAdd more cf boilerplate, and have cf_item_remove return the previous item to make...
Arran Cudbard-Bell [Wed, 15 May 2024 03:55:35 +0000 (21:55 -0600)] 
Add more cf boilerplate, and have cf_item_remove return the previous item to make iterating easier

15 months agoMove packet global free to the atexit handlers
Arran Cudbard-Bell [Wed, 15 May 2024 01:59:50 +0000 (19:59 -0600)] 
Move packet global free to the atexit handlers

15 months agoMove trigger free to the atexit handlers
Arran Cudbard-Bell [Wed, 15 May 2024 01:52:11 +0000 (19:52 -0600)] 
Move trigger free to the atexit handlers

15 months agoMove password free to the atexit handlers
Arran Cudbard-Bell [Wed, 15 May 2024 01:46:13 +0000 (19:46 -0600)] 
Move password free to the atexit handlers

15 months agoMove tmpl free to the atexit handlers
Arran Cudbard-Bell [Wed, 15 May 2024 01:45:58 +0000 (19:45 -0600)] 
Move tmpl free to the atexit handlers

15 months agoAuto unload SNMP attributes
Arran Cudbard-Bell [Wed, 15 May 2024 01:25:52 +0000 (19:25 -0600)] 
Auto unload SNMP attributes

15 months agoPrint the addresses mprotect actually protects
Arran Cudbard-Bell [Wed, 15 May 2024 00:37:32 +0000 (18:37 -0600)] 
Print the addresses mprotect actually protects

15 months agoThis could equal to the length of the pool
Arran Cudbard-Bell [Wed, 15 May 2024 00:36:15 +0000 (18:36 -0600)] 
This could equal to the length of the pool

15 months agoFix mprotect to it hands back the correct end address
Arran Cudbard-Bell [Wed, 15 May 2024 00:10:24 +0000 (18:10 -0600)] 
Fix mprotect to it hands back the correct end address

15 months agohandle the case of write blocked due to all IDs being used.
Alan T. DeKok [Tue, 14 May 2024 23:41:59 +0000 (19:41 -0400)] 
handle the case of write blocked due to all IDs being used.

The next few commits should add and use the various callback
functions to actually handle write blocked / resume

15 months agochange function prototype to make more sense
Alan T. DeKok [Tue, 14 May 2024 23:41:15 +0000 (19:41 -0400)] 
change function prototype to make more sense

15 months agomissed in previous commit
Alan T. DeKok [Tue, 14 May 2024 23:41:02 +0000 (19:41 -0400)] 
missed in previous commit

15 months agocleanups for coverity complaints about unused code
Alan T. DeKok [Tue, 14 May 2024 21:15:06 +0000 (17:15 -0400)] 
cleanups for coverity complaints about unused code

15 months agouse better function signatures for read / write pause / resume
Alan T. DeKok [Tue, 14 May 2024 21:06:44 +0000 (17:06 -0400)] 
use better function signatures for read / write pause / resume

15 months agoremove callbacks from fd_alloc()
Alan T. DeKok [Tue, 14 May 2024 20:46:33 +0000 (16:46 -0400)] 
remove callbacks from fd_alloc()

the caller can set it themselves, and it looks like every bio
may need to set the callbacks

and move the "set callback" code to a common bio function.

It's a bit more work for the caller when it's needed, but it's
much less work when it's not needed.

15 months agoadd read blocked / resume callbacks
Alan T. DeKok [Tue, 14 May 2024 18:58:47 +0000 (14:58 -0400)] 
add read blocked / resume callbacks

15 months agoadd callbacks for read/write blocked, and read/write resume
Alan T. DeKok [Tue, 14 May 2024 18:36:07 +0000 (14:36 -0400)] 
add callbacks for read/write blocked, and read/write resume

for now, only write blocked/resume is plumbed in.

15 months agoEnable write protection on a per-module list basis
Arran Cudbard-Bell [Tue, 14 May 2024 14:57:47 +0000 (08:57 -0600)] 
Enable write protection on a per-module list basis

15 months agoTemporary fix
Arran Cudbard-Bell [Tue, 14 May 2024 04:13:34 +0000 (22:13 -0600)] 
Temporary fix

15 months agoExplicitly free the listener in the socket destructor
Arran Cudbard-Bell [Tue, 14 May 2024 03:48:53 +0000 (21:48 -0600)] 
Explicitly free the listener in the socket destructor

15 months agoUse talloc get type abort for safety...
Arran Cudbard-Bell [Tue, 14 May 2024 02:40:24 +0000 (20:40 -0600)] 
Use talloc get type abort for safety...

15 months 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)

15 months 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.

15 months 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

15 months 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

15 months 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.

15 months 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

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

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

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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

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

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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

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

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

15 months 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

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

15 months 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

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

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

15 months 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

15 months 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

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

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

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

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

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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...

15 months 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.

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

15 months 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

15 months 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

15 months 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

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

15 months 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

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

15 months 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

15 months 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

15 months 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

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

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

15 months 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.

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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

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

16 months 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

16 months 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

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

16 months 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

16 months 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

16 months 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