copr: be: proper umask for action processor

This commit is contained in:
Pavel Raiskup 2019-12-05 07:45:49 +01:00 committed by Pierre-Yves Chibon
parent e2cfa920cc
commit 93bcd9d488
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- /usr/bin/copr-backend-process-action 2019-12-04 01:01:26.000000000 +0000
+++ /usr/bin/copr-backend-process-action 2019-12-05 05:43:14.586341122 +0000
@@ -104,7 +104,7 @@
context = contextlib.nullcontext()
if args.daemon:
- context = daemon.DaemonContext()
+ context = daemon.DaemonContext(umask=0o22)
with context:
logger_name = '{}.{}.pid-{}'.format(

View file

@ -28,6 +28,11 @@
- php-cli
- cronolog
- name: setup correct umask for daemoncontext in action processor
patch: src=patches/proper-action-processor-umask.patch
dest=/usr/bin/copr-backend-process-action
tags: patches
- name: install openstackclient for image preparation
dnf: state=present name=python3-openstackclient
when: devel|bool