summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-07-19 21:55:15 +0200
committerLaurent Bonnans <laurent.bonnans@here.com>2019-08-15 15:38:54 +0200
commitd056dd13074339d2e4553b6de679515592f36947 (patch)
treedae0fb4402a694c734df04afdae0bf07832c2d32
parentd6411383abd7bdcc539e224ee7c30030467e969e (diff)
downloadmeta-updater-d056dd13074339d2e4553b6de679515592f36947.tar.gz
image_types_ostree: make root directory only readable by root
Make the root home directory only accessible by root. Use 700 as commonly used for the root home directory. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry-picked from commit c170b6344b13ea075aff4091c846623b9b6f9a97)
-rw-r--r--classes/image_types_ostree.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index b7104d7..d644f53 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -110,9 +110,9 @@ IMAGE_CMD_ostree () {
110 fi 110 fi
111 111
112 if [ -n "${SYSTEMD_USED}" ]; then 112 if [ -n "${SYSTEMD_USED}" ]; then
113 echo "d /var/roothome 0755 root root -" >>${tmpfiles_conf} 113 echo "d /var/roothome 0700 root root -" >>${tmpfiles_conf}
114 else 114 else
115 echo "mkdir -p /var/roothome; chown 755 /var/roothome" >>${tmpfiles_conf} 115 echo "mkdir -p /var/roothome; chown 700 /var/roothome" >>${tmpfiles_conf}
116 fi 116 fi
117 117
118 rm -rf root 118 rm -rf root