Skip to content

Commit

Permalink
fixup! rpccookieperms: Default to u+rw
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed May 3, 2024
1 parent f287bf7 commit 939e5ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/functional/rpc_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


# Owner-read matches DEFAULT_COOKIE_PERMS in src/httprpc.h
DEFAULT_COOKIE_PERMISSION = stat.S_IRUSR
DEFAULT_COOKIE_PERMISSION = stat.S_IRUSR | stat.S_IWUSR
# Default umask from common/system.cpp
PERM_BITS_UMASK = 0o7777

Expand Down Expand Up @@ -218,7 +218,6 @@ def test_perm(perm: Optional[str]):

self.log.info('Check -norpccookieperms -rpccookieperms')
default_perms = DEFAULT_COOKIE_PERMISSION & PERM_BITS_UMASK
assert(default_perms != unassigned_perms)
self.restart_node(1, extra_args=["-rpccookieperms=0", "-rpccookieperms=1"])
actual_perms = os.stat(cookie_file_path).st_mode & PERM_BITS_UMASK
assert_equal(default_perms, actual_perms)
Expand Down

0 comments on commit 939e5ab

Please sign in to comment.