/usr/share/pyshared/pysnmp/proto/acmod/void.py is in python-pysnmp4 4.2.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Void Access Control Model
from pysnmp.proto import errind, error
from pysnmp import debug
# rfc3415 3.2
class Vacm:
accessModelID = 0
def isAccessAllowed(self,
snmpEngine,
securityModel,
securityName,
securityLevel,
viewType,
contextName,
variableName):
debug.logger & debug.flagACL and debug.logger('isAccessAllowed: viewType %s for variableName %s - OK' % (viewType, variableName))
# rfc3415 3.2.5c
return error.StatusInformation(errorIndication=errind.accessAllowed)
|