You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/09/16 07:33:12 UTC
[GitHub] [apisix-python-plugin-runner] SkyeYoung commented on a diff in pull request #54: fix:chown socket file to belong to nobody
SkyeYoung commented on code in PR #54:
URL: https://github.com/apache/apisix-python-plugin-runner/pull/54#discussion_r972703501
##########
apisix/runner/server/server.py:
##########
@@ -82,6 +84,7 @@ def __init__(self, config: NewServerConfig):
os.remove(self.fd)
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.sock.bind(self.fd)
+ os.chown(self.fd, getpwnam('nobody').pw_uid, grp.getgrnam('nobody').gr_gid)
Review Comment:
> Is there a way I could identify it programmatically (with an ENV var)? Is there a reliable way to find APISIX conf file?
It seems that this will make the matter more complicated. 🤔
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org