mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-01 22:58:12 +00:00
PermissionVectorIterator: Fix issue with unexpected object class mutation.
After iterating a permission vector, permissions from the Common were added into the ObjClass's permission table.
This commit is contained in:
parent
dd7009b68c
commit
10cf639ada
@ -290,7 +290,7 @@ cdef class PermissionVectorIterator(PolicyIterator):
|
|||||||
i.vector = vector
|
i.vector = vector
|
||||||
i.perm_max = tclass.nprim
|
i.perm_max = tclass.nprim
|
||||||
|
|
||||||
i.perm_table = tclass._perm_table
|
i.perm_table = tclass._perm_table.copy()
|
||||||
try:
|
try:
|
||||||
i.perm_table.update(tclass.common._perm_table)
|
i.perm_table.update(tclass.common._perm_table)
|
||||||
except NoCommon:
|
except NoCommon:
|
||||||
|
Loading…
Reference in New Issue
Block a user