void-linux / void-linux/void-packages

Lightdm Ignores Limit Values

Open
#40,305 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-testing
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
  1. Install and configure Lightdm
  2. Set limits in /etc/security/limits.conf
  3. Restart system
  4. Log in via Lightdm
  5. Run ulimit -Hn

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.