Skip to content

Commit

Permalink
make sure ReGaHss will run on umask 0027 per default so that the regadom
Browse files Browse the repository at this point in the history
file will be generated with a bit more strict security settings.
  • Loading branch information
jens-maus committed Sep 25, 2023
1 parent c3e9ee6 commit d4e5f92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildroot-external/overlay/WebUI/etc/init.d/S70ReGaHss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ start() {
echo -n "Starting ReGaHss: "
init

# make sure ReGaHss will run on umask 0027 per default
umask 0027

# adjust the oom score (which is inherited by start-stop-daemon)
# to ensure that others are killed first in case of low memory situations
echo -900 >/proc/$$/oom_score_adj 2>/dev/null
Expand Down

0 comments on commit d4e5f92

Please sign in to comment.