Bug 1888553
| Summary: | pulseaudio should not be started when users login via SSH | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Christian Horn <chorn> |
| Component: | systemd | Assignee: | systemd maint <systemd-maint> |
| Status: | CLOSED MIGRATED | QA Contact: | Frantisek Sumsal <fsumsal> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.1 | CC: | msekleta, ndegraef, rmetrich, systemd-maint-list, watts, wtaymans, yzheng |
| Target Milestone: | rc | Keywords: | MigratedToJIRA |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-29 19:44:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Christian Horn
2020-10-15 07:54:44 UTC
Hi engineering, any updates? rhel8.4 would be a chance to fix this.. No update. I have no idea where to begin with this.. I will try to ask someone who knows about systemd and the ssh login process and how we can disable pulseaudio in the ssh case. Thanks. I would plainly request the removal of the 'sockets.target.wants/pulseaudio.socket' in Fedora or systemd upstream, and then wait for someone to scream. It might need to be reintroduced for desktop sessions, and the way to do it properly needs discussion. Just doing it by default, for example when someone logs in via ssh, is causing issues. Brainstormed today with our partner about this. For normal service units, we can define filter criteria. For example microcode_ctl is not run in virtual guests, /usr/lib/systemd/system/microcode.service : ConditionVirtualization=false If pulseaudio.socket could have something like this, for example evaluating environment variables could then be used to understand if the user is running x11/wayland and only then run pulseaudio. This is a possibility, but I'm not sure this is feasible at all, indeed the user may spawn a VNC service and want to benefit from the audio (I believe VNC has audio support as well). I think this should be handled at 'systemd --user' level, more globally. For example, it doesn't make sense to start 'systemd --user' when a sftp session is started (for now it starts). When a ssh session is started, startup of 'systemd --user' should be done only *on demand*, e.g. when the user does a systemctl --user command for example. Hi, all This issue is disappeared from RHEL 8.3 which uses this version of pulseaudio: ~~~ pulseaudio-13.99.1-1.el8.x86_64 ~~~ Thank you. yzheng, I'm using CentOS 8 Stream using the package pulseaudio-14.0-2.el8.x86_64 and I still have this problem. Occurs when someone logs in via SSH and also spawns a process when certain cronjobs start. Hi, Jeffrey You're right... I found this only does not happen on the root user. The non-root users' ssh logins still generate the pulseaudio process. Thank you. Tested CentOS Stream 14.0-4.el8.x86_64, which appears to be the latest. Remote root logins do not spawn the pulseaudio processes (as mentioned before), but non-root remote logins still spawn processes. Is there a way to disable this in the configuration? Thanks in advance. Either socket or the service should be enabled but not both at the same time. How to start pulseaudio (or pulse socket) just for the sessions associated with seat that actually have access to sound card is something to figure out. Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |