Skip to content

Commit 5e32e7f

Browse files
David LiDavid Li
authored andcommitted
Don't make bots world-readable
1 parent 8a539ee commit 5e32e7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apiserver/worker/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ def setupParticipant(user_index, user, temp_dir):
243243
bot_group = "bots_{}".format(user_index)
244244
bot_cgroup = "bot_{}".format(user_index)
245245

246-
# We want 775 so that the bot can create files still; leading 2
246+
# We want 770 so that the bot can create files still; leading 2
247247
# is equivalent to g+s which forces new files to be owned by the
248248
# group
249-
give_ownership(bot_dir, bot_group, 0o2775)
249+
give_ownership(bot_dir, bot_group, 0o2770)
250250

251251
bot_command = BOT_COMMAND.format(
252252
cgroup=bot_cgroup,

0 commit comments

Comments
 (0)