diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-11-08 15:13:02 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-11-08 15:13:02 +0100 |
| commit | 8f5305b60ed2efede08f8de2a981a812f23bbbb1 (patch) | |
| tree | a5d4b1d2ebf27d748add0f4e0563582369809a7f | |
| parent | d6902e6423ec78b5b99d96b6427ebee771ea6c38 (diff) | |
| download | vyos-1x-8f5305b60ed2efede08f8de2a981a812f23bbbb1.tar.gz vyos-1x-8f5305b60ed2efede08f8de2a981a812f23bbbb1.zip | |
debian: T9587: restore SUID bit on vyos-op-run
When vyos-utils was merged into vyos-1x, the post-install step that sets
the SUID bit on vyos-op-run was not carried over. Operator-level users
have no sudo rights and rely on that bit for the runner to switch to
root after the command-policy check, so every op-mode command they ran
silently produced no output.
The vyos-1x post-install script now sets the SUID bit again.
| -rw-r--r-- | debian/vyos-1x.postinst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst index 2ff2a33e2..df86e6ed4 100644 --- a/debian/vyos-1x.postinst +++ b/debian/vyos-1x.postinst @@ -304,3 +304,8 @@ systemctl enable vyos-dhclient-lease-watch.timer if [ -d /run/systemd/system ]; then systemctl start vyos-dhclient-lease-watch.timer fi + +# Set the SUID bit on the runner +# so that it can have the prigilege to run commands as root. +# Permissions will be enforced at the VyOS command level. +chmod u+s /usr/bin/vyos-op-run |
