summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]openssl-controller.lua1
-rwxr-xr-x[-rw-r--r--]openssl-model.lua5
2 files changed, 6 insertions, 0 deletions
diff --git a/openssl-controller.lua b/openssl-controller.lua
index 824e6bd..7d9ae9a 100644..100755
--- a/openssl-controller.lua
+++ b/openssl-controller.lua
@@ -9,6 +9,7 @@ local sslstatus
mvc={}
mvc.pre_exec = function(self)
+ self.model.set_umask()
sslstatus = self.model.getstatus()
if (sslstatus.value.version.errtxt and self.conf.action ~= "status")
or (sslstatus.value.conffile.errtxt and self.conf.action ~= "status" and self.conf.action ~= "editconfigfile" and self.conf.action ~= "checkenvironment")
diff --git a/openssl-model.lua b/openssl-model.lua
index 423809e..b5a84a6 100644..100755
--- a/openssl-model.lua
+++ b/openssl-model.lua
@@ -300,6 +300,11 @@ getstatus = function()
return cfe({ type="group", value={version=version, conffile=conffile, environment=environment, cacert=cacert, cacertcontents=cacertcontents, cakey=cakey}, label="openssl status" })
end
+set_umask = function()
+ return posix.umask("rw-------")
+end
+
+
getreqdefaults = function()
local defaults = getdefaults()