[Bug 272042] Directory 1002/ is sometimes missing from /var/run/user/

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Jul 2023 07:46:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272042

--- Comment #12 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
(In reply to Graham Perrin ◐ from comment #11)

In my case, there is no /var/run/user itself :)
Because I am not using wayland.

And if it is set while being seen
https://docs.freebsd.org/en/books/handbook/wayland/
I feel that non-privileged users will not be able to create directories there.
If the process that first creates the directory in /var/run/user is a
non-privileged user, one step is required to make sure that /var/run/user has
permissions like 01777 or rwxrwxrwt.

Also, I can't find the part of the sddm source code that makes the directory
there.
If UID is 1001, then just logging in with sddm and starting a session will
create that directory, is that correct?

-- 
You are receiving this mail because:
You are on the CC list for the bug.