2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 06:25:34 +00:00

[#3832] Added umask 0027 setting

This commit is contained in:
Francis Dupont
2025-04-29 11:36:52 +02:00
committed by Andrei Pavel
parent 923990b389
commit d91aa4203c
11 changed files with 89 additions and 7 deletions

View File

@@ -48,9 +48,19 @@ isDir(const std::string& path);
bool
isFile(const std::string& path);
/// @brief Check if there is a socket at the given path.
///
/// @param path The path being checked.
///
/// @return True if the path points to a socket, false otherwise including
/// if the pointed location does not exist.
bool
isSocket(const std::string& path);
/// @brief Set umask (at least 0027 i.e. no group write and no other access).
void
setUmask();
/// @brief Paths on a filesystem
struct Path {
/// @brief Constructor