Re: systemd_user_runtime_dir_t

Topi Miettinen <[email protected]>
Newsgroups org.kernel.vger.selinux-refpolicy
Message-ID <[email protected]>
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 
"[email protected]" 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.