Hello, Create temporary directories with ug=rwx,o= permissions.
Zero group permissions do not allow to use POSIX ACLs which is undesirable. -- Petr^2 Spacek
From d54a1e75411c1bf410e27befc1f7b1cfee45b9b8 Mon Sep 17 00:00:00 2001 From: Petr Spacek <pspa...@redhat.com> Date: Thu, 4 Sep 2014 15:43:49 +0200 Subject: [PATCH] Create temporary directories with ug=rwx,o= permissions. Zero group permissions do not allow to use POSIX ACLs which is undesirable. Signed-off-by: Petr Spacek <pspa...@redhat.com> --- src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs.c b/src/fs.c index 255026a23e1703048073e2b584ac5602bc05f85d..055f231e59bcb6b2a755c7cf78466271cde3a70a 100644 --- a/src/fs.c +++ b/src/fs.c @@ -48,7 +48,7 @@ fs_dir_create(const char *dir_name) if (getcwd(dir_curr, sizeof(dir_curr) - 1) == NULL) strncpy(dir_curr, msg_getcwd_failed, sizeof(dir_curr)); - ret = mkdir(dir_name, 0700); + ret = mkdir(dir_name, S_IRWXU | S_IRWXG); if (ret == 0) result = ISC_R_SUCCESS; else -- 1.9.3
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel