copr: be: proper umask for action processor
This commit is contained in:
parent
e2cfa920cc
commit
93bcd9d488
2 changed files with 16 additions and 0 deletions
11
roles/copr/backend/files/proper-action-processor-umask.patch
Normal file
11
roles/copr/backend/files/proper-action-processor-umask.patch
Normal 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(
|
|
@ -28,6 +28,11 @@
|
||||||
- php-cli
|
- php-cli
|
||||||
- cronolog
|
- 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
|
- name: install openstackclient for image preparation
|
||||||
dnf: state=present name=python3-openstackclient
|
dnf: state=present name=python3-openstackclient
|
||||||
when: devel|bool
|
when: devel|bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue