Re: systemd_user_runtime_dir_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8.4.2020 5.19, Russell Coker wrote:
What kind of name is that?  It's a poor choice of name by systemd upstream and
I don't think we are obliged to copy that bad idea.

The name is related to environment variable XDG_USER_RUNTIME_DIR, which is not systemd specific construct:

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

So if the name should change, xdg_user_runtime_dir_t might be more accurate. On the other hand, the current name reflects that it's specifically the service supplied by systemd called "runtime-user-dir@.service" which provides the directory. If the provider would be something other (/etc/init.d/elogind-mkuserdir), it could be equally accurate to label the directory with something else. Though if the result (temporary directory owned by the user) is no different in either case from the point of view of SELinux policy, why change?

-Topi



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux