Bug 419299 - [kscreenlocker] spaming "kscreenlocker_greet[9912]: Could not create AF_NETLINK socket"
Summary: [kscreenlocker] spaming "kscreenlocker_greet[9912]: Could not create AF_NETLI...
Status: RESOLVED WORKSFORME
Alias: None
Product: kscreenlocker
Classification: Plasma
Component: greeter (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-27 15:54 UTC by Aaron
Modified: 2022-10-19 04:58 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
journalctl -p 3 -xb log after unlocking (930 bytes, text/plain)
2020-03-27 15:54 UTC, Aaron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron 2020-03-27 15:54:56 UTC
Created attachment 127046 [details]
journalctl -p 3 -xb log after unlocking

SUMMARY:
After locking and unlocking the screen, I have permission errors for Could not create AF_NETLINK socket

STEPS TO REPRODUCE:
1. Fresh install of Plasma.
2. Lock the screen and then unlock.
3. observe journalctl -p 3 -xb 

OBSERVED RESULT:
Many lines of "Could not create AF_NETLINK socket (Operation not permitted)"

EXPECTED RESULT:


SOFTWARE/OS VERSIONS
Archlinux 

KDE Plasma: 5.18.3-1
(available in About System)
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Comment 1 deemon 2020-04-29 08:39:49 UTC
same happens also in Manjaro.

KDE Plasma: 5.18.4-1
(available in About System)
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2
Comment 2 Radoslav Georgiev 2020-05-10 20:30:32 UTC
The issue is also reproducible on my system.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Kernel Version: 5.4.39-1-lts
OS Type: 64-bit
Comment 3 Przemek P 2020-05-26 08:47:59 UTC
Same problem here on Manjaro.

Kernel: 5.6.12-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: KDE Plasma 5.18.5 
Distro: Manjaro Linux


--- CUT ---
maj 26 10:41:35 przemek-PC kscreenlocker_greet[21856]: Could not create AF_NETLINK socket (Operation not permitted)
maj 26 10:41:35 przemek-PC kscreenlocker_greet[21856]: Could not create AF_NETLINK socket (Operation not permitted)
--- CUT ---
Comment 4 Athila Mattos 2020-07-07 08:40:13 UTC
I believe I was able to reproduce this issue consistently, as in my system these errors were only appearing from time to time rather than every time I locked the screen, and I was able to find out the culprit.

This error -- Could not create AF_NETLINK socket (Operation not permitted) -- seem to be triggered by the media controls present in the KDE Screen Locking component when Chromium is playing media, for instance, Spotify or Youtube.


How to reproduce
================

1. Install Chromium web browser;
2. Play a random video on Youtube or a random song on Spotify;
3. Open up a terminal while the media is playing and type:
     /usr/lib/kscreenlocker_greet --testing
4. Look into the terminal output and you will see the error:
     Could not create AF_NETLINK socket (Operation not permitted)

Keep in mind that, because in this example I am using the '--testing' parameter, the error will not be registered on journald, however, if you lock the screen normally while Chromium is playing media (with Meta + L), the errors on #4 will be logged in journald.


Test environment
================

- Laptop: ThinkPad T470s
- Distribution: Arch Linux
- Kernel version: 5.7.6-arch1-1
- KDE Plasma version: 5.19.2
- KDE Frameworks version: 5.71.0


Temporary workaround
====================

1. Disable Lock screen media controls by:
   - Open Plasma System Settings;
   - Navigate to Workspace Behavior > Screen Locking;
   - On the right side, click on 'Appearance' tab;
   - Deselect the 'media controls' box;

2. Use Firefox on Youtube or Spotify;


Additional notes
================

- According to my tests, Firefox don't seem to be affected by this problem, as these errors don't appear when Firefox is playing media.

- The reason I would like to get rid of these errors is that, over time, it gets tedious having to filter out journald every time I want to debug something else, as there are thousands of entries related to the problem above.

- I haven't tested this on other distributions, but it seems like Manjaro also has the same problem:
https://forum.manjaro.org/t/kscreenlocker-greet-7020-could-not-create-af-netlink-socket-operation-not-permitted/130582
Comment 5 Athila Mattos 2020-07-07 09:52:55 UTC
Another piece of information to help diagnose this problem:

Although my last update describes how to reproduce the problem, I have found out that what is really triggering the issue is the Plasma Integration browser extension, which affects Chromium _and_ Firefox, probably regardless of the distribution.

If the browser extension is installed while playing media and the media controls are enabled on the 'Screen Locking' option, you will see the error.

Another workaround is to remove the media controls from the extension itself, or removing it completely.
Comment 6 Aleix Pol 2022-09-19 22:01:03 UTC
Can you maybe see if this also is a problem when running "plasmawindowed org.kde.plasma.mediacontroller"?
Comment 7 Bug Janitor Service 2022-10-04 04:49:50 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-10-19 04:58:00 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!