]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: set umask for luarocks temporary directory
authorAnsgar Jazdzewski <ansgar.jazdzewski@hetzner-cloud.de>
Tue, 11 Mar 2025 13:03:48 +0000 (14:03 +0100)
committerAnsgar Jazdzewski <ansgar.jazdzewski@hetzner-cloud.de>
Tue, 13 May 2025 08:23:41 +0000 (10:23 +0200)
commit827de0d47a71a61c1e0363480a316040fb31457d
treec84761201ad666c3dcb135b27f5693456f218352
parentc8a5017f86b2d0687f1288161aa41bd9b34ce060
rgw: set umask for luarocks temporary directory

mkdtemp creates the temporary directory with 0700 permissions by default, which restricts access to the user that created it. Since RGW can start as root and later drop privileges to the ceph user, the installed Lua code needs to be accessible by other users.

This commit explicitly sets the umask (chmod) to ensure the temporary directory has appropriate permissions (755), allowing access to all users.

Signed-off-by: Ansgar Jazdzewski <ansgar.jazdzewski@hetzner-cloud.de>
src/rgw/rgw_lua.cc