Skip to content

Commit

Permalink
systemd: MOJO_TMPDIR=/var/lib/mirrorcache/tmp
Browse files Browse the repository at this point in the history
[ci skip]
Previous value /tmp/mirrorcache has security implications and was not
allowed to Factory
  • Loading branch information
andrii-suse committed Nov 6, 2024
1 parent 1e46c14 commit 8031dc6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/rpm/MirrorCache-tmpfilesd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Type Path Mode UID GID Age Argument
d /var/lib/mirrorcache 0750 mirrorcache mirrorcache - -
d /var/lib/mirrorcache/tmp 0750 mirrorcache mirrorcache 2h
d /run/mirrorcache 0750 mirrorcache mirrorcache - -
d /tmp/mirrorcache - mirrorcache mirrorcache 8h
2 changes: 1 addition & 1 deletion dist/systemd/mirrorcache-backstage-hashes.service
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RestartSec=10
EnvironmentFile=/etc/mirrorcache/conf.env
EnvironmentFile=-/etc/mirrorcache/conf-hashes.env
WorkingDirectory=/var/lib/mirrorcache
Environment="MOJO_TMPDIR=/tmp/mirrorcache"
Environment="MOJO_TMPDIR=/var/lib/mirrorcache/tmp"

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion dist/systemd/mirrorcache-backstage.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Restart=on-failure
RestartSec=10
EnvironmentFile=/etc/mirrorcache/conf.env
WorkingDirectory=/var/lib/mirrorcache
Environment="MOJO_TMPDIR=/tmp/mirrorcache"
Environment="MOJO_TMPDIR=/var/lib/mirrorcache/tmp"

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion dist/systemd/mirrorcache-hypnotoad.service
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ExecReload=/usr/share/mirrorcache/script/mirrorcache-hypnotoad
EnvironmentFile=/etc/mirrorcache/conf.env
KillMode=process
WorkingDirectory=/var/lib/mirrorcache
Environment="MOJO_TMPDIR=/tmp/mirrorcache"
Environment="MOJO_TMPDIR=/var/lib/mirrorcache/tmp"

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion dist/systemd/mirrorcache-subtree.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ EnvironmentFile=-/etc/mirrorcache/conf.env
EnvironmentFile=/etc/mirrorcache/conf-subtree.env
ExecStart=/usr/share/mirrorcache/script/mirrorcache-daemon
WorkingDirectory=/var/lib/mirrorcache
Environment="MOJO_TMPDIR=/tmp/mirrorcache"
Environment="MOJO_TMPDIR=/var/lib/mirrorcache/tmp"

[Install]
WantedBy=multi-user.target

0 comments on commit 8031dc6

Please sign in to comment.