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 05:57:59 UTC

[GitHub] [apisix-python-plugin-runner] spacewander commented on a diff in pull request #54: fix:chown socket file to belong to nobody

spacewander commented on code in PR #54:
URL: https://github.com/apache/apisix-python-plugin-runner/pull/54#discussion_r972639663


##########
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:
   Another user can be used by configuring the `user` directive: https://nginx.org/en/docs/ngx_core_module.html#user



-- 
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