diff options
author | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-06-11 09:44:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 09:44:36 +0300 |
commit | 682defd62484839fc3d5348803f7b241a327cb0d (patch) | |
tree | b5c4866f0894bae34cfb4813c1976e5ea41ffee9 /src/completion | |
parent | 393e5336dd659ae9db601a1764a4649930c6d336 (diff) | |
download | vyos-1x-682defd62484839fc3d5348803f7b241a327cb0d.tar.gz vyos-1x-682defd62484839fc3d5348803f7b241a327cb0d.zip |
T6219: Add support for container sysctl parameter (backport #3614) (#3629)
* container: T6219: Add support for container sysctl / kernel parameters
(cherry picked from commit 717ea64e4c54a8be619ffc29c16c6203b29319dd)
* T6219: align with system sysctl and limit parameters to supported
(cherry picked from commit f030464952168b553b5b3e29b461d437c2642a9b)
---------
Co-authored-by: Ben Pilgrim <ben@pilgrim.me.uk>
Co-authored-by: Nicolas Vollmar <nvollmar@gmail.com>
Diffstat (limited to 'src/completion')
-rwxr-xr-x | src/completion/list_container_sysctl_parameters.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/completion/list_container_sysctl_parameters.sh b/src/completion/list_container_sysctl_parameters.sh new file mode 100755 index 000000000..cf8d006e5 --- /dev/null +++ b/src/completion/list_container_sysctl_parameters.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Copyright (C) 2024 VyOS maintainers and contributors +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 or later as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +declare -a vals +eval "vals=($(/sbin/sysctl -N -a|grep -E '^(fs.mqueue|net)\.|^(kernel.msgmax|kernel.msgmnb|kernel.msgmni|kernel.sem|kernel.shmall|kernel.shmmax|kernel.shmmni|kernel.shm_rmid_forced)$'))" +echo ${vals[@]} +exit 0 |