summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav Hletenko <seversss265@gmail.com>2019-12-17 13:45:21 +0200
committerChristian Poessinger <christian@poessinger.com>2019-12-17 16:53:32 +0100
commitb4bd42fe357fa7fa337ac2e561348582399f858b (patch)
treee64e1f8e7fd3222a0d2de43c751bde6386a7adc1 /src
parentb55b68f6246329468b4ab3450e127d5bab683bff (diff)
downloadvyos-1x-b4bd42fe357fa7fa337ac2e561348582399f858b.tar.gz
vyos-1x-b4bd42fe357fa7fa337ac2e561348582399f858b.zip
snmp: T1881: Change permission for script files
Diffstat (limited to 'src')
-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 b64cccbfa..5012ab79e 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
+from stat import S_IRWXU,S_IXGRP,S_IXOTH,S_IROTH
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)
+ os.chmod(ext['script'], S_IRWXU|S_IXGRP|S_IXOTH|S_IROTH)
for listen in snmp['listen_address']:
addr = listen[0]