Python Module with FreeRADIUS 3.0.15
Trying to implement just the basic Python example as documented is not working with the FreeRADIUS 3.0.15 build on Unbuntu 14.04. After enabling and running "freeradius -X", FreeRADIUS exits with only this: # Instantiating module "python" from file /etc/freeradius/mods-enabled/python Python version: 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4] Other than enabling the the python module, the only other change was to enable the python_path and uncomment the "func_authorize = authorize" line in mods-available/python. The example.pyc is not created. Everything was working swimmingly under FreeRADIUS 3.0.12. Any ideas? Thanks, Gary
Is anyone using the 3.0.15 release with the Python module on Unbuntu 14.04 (trusty)? Could FR-AD-002 (v3) have broken? Gary FR-AD-002 (v3) String lifetime issues in rlm_python Issue: The PySys_SetPath() and PySys_SetName() functions require a long-lived pointer to the path / name. Impact: Potential crash. Exploit vector: Administrators who have write access to the server configuration files. Fix: Use a long-lived string instead of a short-lived one. Fixed in FR-AD-002. CVE: No CVE has been release as this issue has no impact, and exploitation does not cross a privilege boundary in a correct and realistic product deployment. On Tue, Dec 12, 2017 at 6:01 PM, Gary Gwin <garygwin@gmail.com> wrote:
Trying to implement just the basic Python example as documented is not working with the FreeRADIUS 3.0.15 build on Unbuntu 14.04. After enabling and running "freeradius -X", FreeRADIUS exits with only this:
# Instantiating module "python" from file /etc/freeradius/mods-enabled/ python Python version: 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4]
Other than enabling the the python module, the only other change was to enable the python_path and uncomment the "func_authorize = authorize" line in mods-available/python. The example.pyc is not created.
Everything was working swimmingly under FreeRADIUS 3.0.12.
Any ideas?
Thanks,
Gary
Running the same basic Python example under Unbuntu 16.04 (xenial) with FreeRADIUS 3.0.15 has the same crash results, however, "freeradius -X" debug shows the seg fault: # Instantiating module "python" from file /etc/freeradius/mods-enabled/python Python version: 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] Segmentation fault Gary On Tue, Dec 12, 2017 at 6:01 PM, Gary Gwin <garygwin@gmail.com> wrote:
Trying to implement just the basic Python example as documented is not working with the FreeRADIUS 3.0.15 build on Unbuntu 14.04. After enabling and running "freeradius -X", FreeRADIUS exits with only this:
# Instantiating module "python" from file /etc/freeradius/mods-enabled/ python Python version: 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4]
Other than enabling the the python module, the only other change was to enable the python_path and uncomment the "func_authorize = authorize" line in mods-available/python. The example.pyc is not created.
Everything was working swimmingly under FreeRADIUS 3.0.12.
Any ideas?
Thanks,
Gary
Gary Gwin wrote:
Running the same basic Python example under Unbuntu 16.04 (xenial) with FreeRADIUS 3.0.15 has the same crash results, however, "freeradius -X" debug shows the seg fault:
# Instantiating module "python" from file /etc/freeradius/mods-enabled/python Python version: 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] Segmentation fault
Could you add a gdb/lldb backtrace for that segfault (instructions at https://github.com/FreeRADIUS/freeradius-server/blob/v4.0.x/doc/bugs.md) -- Herwin
On Tue, 2017-12-12 at 18:01 -0700, Gary Gwin wrote:
Trying to implement just the basic Python example as documented is not working with the FreeRADIUS 3.0.15 build on Unbuntu 14.04. After enabling and running "freeradius -X", FreeRADIUS exits with only this:
# Instantiating module "python" from file /etc/freeradius/mods-enabled/python Python version: 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4]
Try v3.0.x, it's fixed there. -- Matthew
Try v3.0.x, it's fixed there.
Confirming that the python module seg fault issue is fixed. Thank you! Gary On Thu, Dec 14, 2017 at 4:26 AM, Matthew Newton <mcn@freeradius.org> wrote:
On Tue, 2017-12-12 at 18:01 -0700, Gary Gwin wrote:
Trying to implement just the basic Python example as documented is not working with the FreeRADIUS 3.0.15 build on Unbuntu 14.04. After enabling and running "freeradius -X", FreeRADIUS exits with only this:
# Instantiating module "python" from file /etc/freeradius/mods-enabled/python Python version: 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4]
Try v3.0.x, it's fixed there.
-- Matthew
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
participants (3)
-
Gary Gwin -
Herwin Weststrate -
Matthew Newton