diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-06-16 10:51:52 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-06-16 10:51:54 +0200 |
commit | efb598caafc20db278938ff3787e3674467e0663 (patch) | |
tree | 7489dc2d48624af2ae7ded7a4ecb19f48da44d16 /op-mode-definitions | |
parent | adaa9b78e2fb0c7da58ca6c09934b3e3cff44795 (diff) | |
download | vyos-1x-efb598caafc20db278938ff3787e3674467e0663.tar.gz vyos-1x-efb598caafc20db278938ff3787e3674467e0663.zip |
T1438: fix permissions when invoking 'show version'
Accessing Kernel DMI data (under /sys/class/dmi) requires elevated permission
and thus retrieving a Board Serial/UUID was not possible.
version.py is now called via sudo to gether all facts.
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/version.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/op-mode-definitions/version.xml b/op-mode-definitions/version.xml index 593785f7a..57931fdff 100644 --- a/op-mode-definitions/version.xml +++ b/op-mode-definitions/version.xml @@ -6,19 +6,19 @@ <properties> <help>Show system version information</help> </properties> - <command>${vyos_op_scripts_dir}/version.py</command> + <command>sudo ${vyos_op_scripts_dir}/version.py</command> <children> <leafNode name="funny"> <properties> <help>Show system version and some fun stuff</help> </properties> - <command>${vyos_op_scripts_dir}/version.py --funny</command> + <command>sudo ${vyos_op_scripts_dir}/version.py --funny</command> </leafNode> <leafNode name="all"> <properties> <help>Show system version and versions of all packages</help> </properties> - <command>${vyos_op_scripts_dir}/version.py --all</command> + <command>sudo ${vyos_op_scripts_dir}/version.py --all</command> </leafNode> </children> </node> |