Skip to content

Commit 52e45e8

Browse files
authored
[201911][sudoers] Add sonic_installer list to read-only commands (#4997)
`sonic_installer list` is a read-only command. Specify it as such in the sudoers file. This will also ensure the new `show boot` command, which calls `sudo sonic_installer list` under the hood doesn't fail due to permissions.
1 parent 5591131 commit 52e45e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files/image_config/sudoers/sudoers

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Cmnd_Alias READ_ONLY_CMDS = /sbin/brctl show, \
3232
/usr/bin/psuutil *, \
3333
/usr/bin/sensors, \
3434
/usr/bin/sfputil show *, \
35+
/usr/bin/sonic_installer list, \
3536
/usr/bin/teamshow, \
3637
/usr/bin/vtysh -c show *, \
3738
/bin/cat /var/log/syslog*, \

0 commit comments

Comments
 (0)