Skip to content

Commit

Permalink
Merge branch 'fix-var-tmp-perms' into 'master'
Browse files Browse the repository at this point in the history
Set sticky bit on /var/tmp as well (matching perms in base-files)

See merge request live-team/live-boot!30
  • Loading branch information
rhertzog committed Apr 21, 2020
2 parents 3b7c6a2 + 17ffaa3 commit 24f2452
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/9990-overlay.sh
Expand Up @@ -310,6 +310,12 @@ setup_unionfs ()
chmod 1777 "${rootmnt}"/tmp
fi

# Correct the permission of /var/tmp:
if [ -d "${rootmnt}/var/tmp" ]
then
chmod 1777 "${rootmnt}"/var/tmp
fi

# Adding custom persistence
if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ]
then
Expand Down

0 comments on commit 24f2452

Please sign in to comment.