-
Notifications
You must be signed in to change notification settings - Fork 25
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
pam_limits.so not applied when configured in /etc/pam.d/emptty, can't set ulimit #97
Comments
I'm using this
And I have the default pipewire limits.d override:
And my user is in the
So it seems to me that emptty's pam implementation is working correctly. |
Hello, |
Here is my
I am not really familiar with how PAM works so I am still not sure if it's related to emptty or not but based on my experimentation with other display managers, this kind of configuration works with them while it does not with emptty. For example, here is the lightdms file (
I only added the |
I've been looking into that and here's my findigs:
So I'm trying to find out, why it doesn't work on Void and what can I change to force the inheritation of limits. |
My yesterday's thought was right, Golang does not provide resource limit inheritance into child processes by default, but it could be defined. So after the PAM session is opened and before desktop session is started, emptty gets all own resource limits and sets them for following child processes. |
While configuring the
/etc/security/limits.conf
to increase file descriptor limit, we need to add required PAM configuration to display manager as well.Adding the following line to
/etc/pam.d/login
or/etc/pam.d/lightdm
works fine for those but adding this line to/etc/pam.d/emptty
has no effect and the file descriptor limit doesn't change.I am using emptty v0.11.0 on Void Linux.
Reproduction
In order to reproduce, configure file descriptor limit in
/etc/security/limits.conf
by adding these lines to end of file (you could change*
to your username, this changes the limit for all users on the system):Test against another display manager. Add following line to
/etc/pam.d/login
or/etc/pam.d/lightdm
or any other display manager:Reboot and login. Run
ulimit -Hn
to see that the limit is changed. Currently, with emptty, limit doesn't change.The text was updated successfully, but these errors were encountered: