summaryrefslogtreecommitdiffstats
path: root/src/responder/pam
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-10-24 12:42:50 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-10-29 10:41:06 +0100
commit458f5245dd5130d12666cce6faf8ef1ec7f80169 (patch)
tree78ddfce672beefbf82a53e6e5af4f30425ec4b2f /src/responder/pam
parentcbcb834028794a4c658a85965516113f8c0760c1 (diff)
downloadsssd-458f5245dd5130d12666cce6faf8ef1ec7f80169.tar.gz
sssd-458f5245dd5130d12666cce6faf8ef1ec7f80169.tar.xz
sssd-458f5245dd5130d12666cce6faf8ef1ec7f80169.zip
RESPONDERS: Set default value for umask
Resolves: https://fedorahosted.org/sssd/ticket/2468 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder/pam')
-rw-r--r--src/responder/pam/pamsrv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/responder/pam/pamsrv.c b/src/responder/pam/pamsrv.c
index c7e3c20b2..886136b42 100644
--- a/src/responder/pam/pamsrv.c
+++ b/src/responder/pam/pamsrv.c
@@ -332,6 +332,8 @@ int main(int argc, const char *argv[])
/* Set debug level to invalid value so we can deside if -d 0 was used. */
debug_level = SSSDBG_INVALID;
+ umask(DFL_RSP_UMASK);
+
pc = poptGetContext(argv[0], argc, argv, long_options, 0);
while((opt = poptGetNextOpt(pc)) != -1) {
switch(opt) {