void-linux / void-linux/void-packages
Lightdm Ignores Limit Values
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
Description
Is this a new report?
Yes
System Info
Void 5.19.17_1 x86_64 GenuineIntel uptodate FFFFF
Package(s) Affected
pam-1.5.2_2 lightdm-1.32.0_2
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Expected behaviour
After setting up Lightdm and modifying /etc/security/limits.conf and restarting the system, the output of ulimit -Hn should be the same as that defined in the configuration file.
For example, mine has the following line for playing games with ESync:
elliot hard nofile 524288
So the output of ulimit -Hn would be: 524288
Actual behaviour
No matter what is written in /etc/security/limits.conf, the output of ulimit -Hn is just the default of 4096. According to this issue in 2020, this can be fixed by adding session required pam_limits.so to /etc/pam.d/lightdm. This should be enabled by default, but the issue was automatically closed due to inactivity.
Steps to reproduce
- Install and configure Lightdm
- Set limits in
/etc/security/limits.conf - Restart system
- Log in via Lightdm
- Run
ulimit -Hn
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the LightDM PAM configuration at /etc/pam.d/lightdm and the limits in /etc/security/limits.conf, then compare the proposed fix in issue 20105. Reproduce the login flow and check whether ulimit -Hn matches the configured value after logging in through LightDM.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- authentication, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100