mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 09:10:10 +01:00
In some places we use g_file_set_contents() after a umask() to limit
the permissions of the created file. Unfortunately if the containing
directory has a default ACL the umask will be ignored and the new file
will have a mode equal to the default ACL (since g_file_set_contents()
opens the file with mode 0666).
Calling a chmod() after the file gets created is insecure (see commit
|
||
|---|---|---|
| .. | ||
| tests | ||
| Makefile.am | ||
| nms-keyfile-connection.c | ||
| nms-keyfile-connection.h | ||
| nms-keyfile-plugin.c | ||
| nms-keyfile-plugin.h | ||
| nms-keyfile-reader.c | ||
| nms-keyfile-reader.h | ||
| nms-keyfile-utils.c | ||
| nms-keyfile-utils.h | ||
| nms-keyfile-writer.c | ||
| nms-keyfile-writer.h | ||