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:53:19 +0200 |
commit | e10c17fd10fb6b872042046a85427e4056584082 (patch) | |
tree | 6a65b3f4dfc7d8723ce83bff95388c15fc91a342 /op-mode-definitions | |
parent | 58658f9af85c3cc0e822d47a7a78e67827d3d3a8 (diff) | |
download | vyos-1x-e10c17fd10fb6b872042046a85427e4056584082.tar.gz vyos-1x-e10c17fd10fb6b872042046a85427e4056584082.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.
(cherry picked from commit efb598caafc20db278938ff3787e3674467e0663)
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> |