-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setuid called to early #304
Comments
nim-odoo
added a commit
to nim-odoo/aiosmtpd
that referenced
this issue
Feb 9, 2023
Listening to a port < 1024 without `--nosetuid` leads to a permission error. The UID change is done too early: we should first open the port, then change the UID. Fixes aio-libs#304
10 tasks
nim-odoo
added a commit
to nim-odoo/aiosmtpd
that referenced
this issue
Feb 9, 2023
Listening to a port < 1024 without `--nosetuid` leads to a permission error. The UID change is done too early: we should first open the port, then change the UID. Fixes aio-libs#304
nim-odoo
added a commit
to nim-odoo/aiosmtpd
that referenced
this issue
Mar 7, 2023
Listening to a port < 1024 without `--nosetuid` leads to a permission error. The UID change is done too early: we should first open the port, then change the UID. Fixes aio-libs#304
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When requesting a system port (127.0.0.1:25) the setuid call is to early. It should be after the listen is completed. In that way a system port can be open and the program can run at a lower security level.
The text was updated successfully, but these errors were encountered: