]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: use 0o600 as the default mode for write_new
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 6 Jun 2023 17:24:37 +0000 (13:24 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:13 +0000 (13:35 -0400)
commit2904e0c115e17dfaad00ecdc2fbc3ce4702371c2
tree80698f6a329923c48bd2b5bd3bf155fa8d9a4c90
parent25c1f43ca863958cb0b40ade42f82f9b06a191da
cephadm: use 0o600 as the default mode for write_new

Add a constant DEFAULT_MODE of `0o600`, and make it the default of
the perms argument to write_new. This reduces a lot of code since
0o600 is the majority of the permissions used. Other cases can continue
to pass None to indicate no particular permissions are desired.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit b76132035be9383dafba382d0291da4068bfa94e)
src/cephadm/cephadm.py