mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-10-30 17:48:09 +00:00
This pull request add plugin support library to bash.
And we will create a TACACS+ plugin for bash in an other PR, which will bring per command authorization feature to bash.
Why I did it
To support TACACS per command authorization, we check user command before execute it.
How I did it
Add plugin support to bash.
How to verify it
UT with CUnit under bash project cover all new code in plugin.c.
Also pass all current UT.
Which release branch to backport (provide reason below if selected)
N/A
Description for the changelog
Add plugin support to bash.
6 lines
172 B
Bash
6 lines
172 B
Bash
# tacacs authorization plugin
|
|
plugin=/home/liuh/tacacs-bash-plugin/tacacs-authorization.so
|
|
plugin=/usr/lib/bash-plugins/another_test_plugin.so # test comments
|
|
|
|
|
|
# test line |