diff options
author | Petr Cech <pcech@redhat.com> | 2015-10-21 08:06:19 -0400 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2015-11-05 16:07:55 +0100 |
commit | 56e067109659886408789c936d37c1e86fe46695 (patch) | |
tree | 921f5ba30093617d7d85ff15e2cb1a0df9517215 /src/util | |
parent | fb75e886c2f203fe8c10e572cd4d8c635941678d (diff) | |
download | sssd-56e067109659886408789c936d37c1e86fe46695.tar.gz sssd-56e067109659886408789c936d37c1e86fe46695.tar.xz sssd-56e067109659886408789c936d37c1e86fe46695.zip |
UTIL: More restrictive umask on sss_unique_file()
There is no need to have executable unique_file.
Resolves:
https://fedorahosted.org/sssd/ticket/2424
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util.c b/src/util/util.c index f0925051a..11924a371 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -1090,7 +1090,7 @@ int sss_unique_file(TALLOC_CTX *owner, char *path_tmpl, errno_t *_err) { - return sss_unique_file_ex(owner, path_tmpl, 077, _err); + return sss_unique_file_ex(owner, path_tmpl, SSS_DFL_UMASK, _err); } errno_t sss_unique_filename(TALLOC_CTX *owner, char *path_tmpl) |