Gnome Desktop Manager fails to start if /proc is mounted with hidepid=1.
This document (7023519) is provided subject to the disclaimer at the end of this document.
Environment
Situation
- hidepid: controls whether to hide or not the content inside /proc.
- gid: defines a group that will be able to gather all processes' info.
- 0 ; (default) all users can read all world-readable /proc/PID/* files.
- 1 ; users may not access any /proc/<pid>/ directories, but their own.
- 2 ; means hidepid=1 plus all /proc/PID/ will be invisible to other users.
2018-11-09T10:38:19.148175+01:00 srv01 gdm-x-session: Preparing auth file for X server2018-11-09T10:38:19.148268+01:00 srv01 gdm-x-session: Running X server2018-11-09T10:38:19.178031+01:00 srv01 systemd[1]: Started Process Core Dump (PID 6441/UID 0).2018-11-09T10:38:19.207996+01:00 srv01 gdm-x-session: X server did not write display string2018-11-09T10:38:19.208502+01:00 srv01 gdm-launch-environment]: GdmSessionWorker: child (pid:6438) done (status:70)2018-11-09T10:38:19.208684+01:00 srv01 gdm-launch-environment]: GdmSessionWorker: uninitializing PAM2018-11-09T10:38:19.209302+01:00 srv01 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session closed for user gdm2018-11-09T10:38:19.209980+01:00 srv01 gdm-launch-environment]: GdmSessionWorker: jumping to VT 12018-11-09T10:38:19.222660+01:00 srv01 gdm-launch-environment]: GdmSessionWorker: couldn't finalize jump to VT 1: Interrupted system call2018-11-09T10:38:19.222887+01:00 srv01 gdm-launch-environment]: GdmSessionWorker: state NONE2018-11-09T10:38:19.223025+01:00 srv01 gdm: GdmSession: Emitting 'session-exited' signal with exit code '70'
Resolution
- Create a new group
- Add all users that need to read '/proc' filesystem into that group (including the 'gdm' user)
- Create the file '/etc/systemd/system/systemd-logind.conf.d/hidepid.conf' with the below information (replace '<NEW_GROUP>' with the above group):
[Service]SupplementaryGroups=<NEW_GROUP>
- Remount the '/proc' file system with gid:
mount -o remount,hidepid=1,gid=<NEW_GROUP_ID> /proc
- Restart GDM :
systemctl restart display-manager.service
Cause
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023519
- Creation Date: 14-Nov-2018
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com