summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-17 16:56:26 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-17 16:56:26 +0100
commit970bf04bfe481c6ecfb28a2f43e799b196a2ec94 (patch)
treeeef8bf5d6dd24f716488d8d2c67e58f89f4e047c /src/conf_mode
parentb4bd42fe357fa7fa337ac2e561348582399f858b (diff)
downloadvyos-1x-970bf04bfe481c6ecfb28a2f43e799b196a2ec94.tar.gz
vyos-1x-970bf04bfe481c6ecfb28a2f43e799b196a2ec94.zip
snmp: T1881: add S_IRGRP to snmp script file permission set
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/snmp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 5012ab79e..6c0ef91c3 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -27,7 +27,7 @@ import vyos.validate
from binascii import hexlify
from shutil import move
from time import sleep
-from stat import S_IRWXU,S_IXGRP,S_IXOTH,S_IROTH
+from stat import S_IRWXU,S_IXGRP,S_IXOTH,S_IROTH,S_IRGRP
from vyos.config import Config
from vyos import ConfigError
@@ -552,7 +552,7 @@ def verify(snmp):
if not os.path.isfile(ext['script']):
print ("WARNING: script: {} doesn't exist".format(ext['script']))
else:
- os.chmod(ext['script'], S_IRWXU|S_IXGRP|S_IXOTH|S_IROTH)
+ os.chmod(ext['script'], S_IRWXU|S_IXGRP|S_IXOTH|S_IROTH|S_IRGRP)
for listen in snmp['listen_address']:
addr = listen[0]