How to remove and add some subtree access fro VacmSecurityTable

Hello Frank,

I have a requirement to remove specific subtrees from VacmAccessTable.
I am using addNewView and deleteView APIs with same view name and the required subtree index.
But its nor working always. Could you please let me know how to handle the scenario?

Regards
Rahul

Hello,

from what you wrote, you’re using the right functions. So it could be that you have multiple views for the same subtree that allow access. The longest matching subtree of a view wins and if it has view_included, access is allowed.
If you code is triggered to allow access to “1.3.6.1.1” and later to “1.3.6.1.1.1”, you can remove one of these views and still get access to “1.3.6.1.1.1.2”.

Do you have an example of the configured views and an Oid that can be accessed although it should not?

Kind regards,
Jochen