XDG_RUNTIME_DIR permission check

David Faure <[email protected]>
Newsgroups gmane.linux.xdg.devel
Organization KDE
Message-ID <3927991.uarpcTn9uW@asterixp50>
http://standards.freedesktop.org/basedir-spec/latest says

„The directory MUST be owned by the user, and he MUST be the only one having 
read and write access to it. Its Unix access mode MUST be 0700.“ 

However this is unclear in terms of who is responsible for these "MUST".

Should an application (or library), which wants to use XDG_RUNTIME_DIR, check 
these ownership/permission requirements before using it, or are these 
constraints simply for the piece of code that sets XDG_RUNTIME_DIR and then 
apps can just use it without checking?

Based on the outcome I'll make a patch for the spec, since it seems unclear 
right now.

-- 
David Faure, [email protected], http://www.davidfaure.fr
Working on KDE Frameworks 5

_______________________________________________
xdg mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xdg
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.