mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-03 01:44:29 +00:00
genpolicy: add link to allow_user() active issue
Improve comment to workaround in rules.rego, to explain better the reason for that workaround. Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
@@ -540,9 +540,7 @@ allow_user(p_process, i_process) {
|
|||||||
p_user := p_process.User
|
p_user := p_process.User
|
||||||
i_user := i_process.User
|
i_user := i_process.User
|
||||||
|
|
||||||
# TODO: track down the reason for mcr.microsoft.com/oss/bitnami/redis:6.0.8 being
|
# TODO: remove this workaround when fixing https://github.com/kata-containers/kata-containers/issues/9928.
|
||||||
# executed with uid = 0 despite having "User": "1001" in its container image
|
|
||||||
# config.
|
|
||||||
#print("allow_user: input uid =", i_user.UID, "policy uid =", p_user.UID)
|
#print("allow_user: input uid =", i_user.UID, "policy uid =", p_user.UID)
|
||||||
#p_user.UID == i_user.UID
|
#p_user.UID == i_user.UID
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user