HomeClusterLabs Projects

Refactor: libcrmservice: Defunctionize create_world_readable()
c6095d9d0da4Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: libcrmservice: Defunctionize create_world_readable()

I think this is clearer. The glibc doc also recommends fchmod() over
umask():
https://www.gnu.org/software/libc/manual/html_node/Setting-Permissions.html

It shouldn't matter in our case. umask() isn't thread-safe, but
Pacemaker is single-threaded. Still, setting the permissions explicitly
seems clearer.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 2 2025, 3:20 AM
Parents
rP05d70783f374: Refactor: libcrmservice: Fail systemd rsc start if create override fails
Branches
Unknown
Tags
Unknown

Event Timeline