mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: properly set umask to prohibit permissions to group and others
Set the umask for the zkey process to clear permissions for genernated secure key files for group and others. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
This commit is contained in:
committed by
Michael Holzheu
parent
b53793d1b6
commit
fe0b2d96f7
@@ -1108,6 +1108,8 @@ int main(int argc, char *argv[])
|
||||
goto out;
|
||||
}
|
||||
|
||||
umask(S_IRWXG|S_IRWXO);
|
||||
|
||||
rc = command->function(keyfile);
|
||||
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user