mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-17 00:43:36 +00:00
genpolicy: Enable GID checks in rules.rego
With fixes to align policy GID parsing with the CRI behavior, we can now enable policy verification of GIDs. Signed-off-by: Cameron Baird <cameronbaird@microsoft.com>
This commit is contained in:
parent
eb2c7f4150
commit
938ddeaf1e
@ -694,11 +694,8 @@ allow_user(p_process, i_process) {
|
||||
print("allow_user: input uid =", i_user.UID, "policy uid =", p_user.UID)
|
||||
p_user.UID == i_user.UID
|
||||
|
||||
# TODO: track down the reason for registry.k8s.io/pause:3.9 being
|
||||
# executed with gid = 0 despite having "65535:65535" in its container image
|
||||
# config.
|
||||
#print("allow_user: input gid =", i_user.GID, "policy gid =", p_user.GID)
|
||||
#p_user.GID == i_user.GID
|
||||
print("allow_user: input gid =", i_user.GID, "policy gid =", p_user.GID)
|
||||
p_user.GID == i_user.GID
|
||||
|
||||
# TODO: compare the additionalGids field too after computing its value
|
||||
# based on /etc/passwd and /etc/group from the container image.
|
||||
|
Loading…
Reference in New Issue
Block a user