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 17:48:39 +0200
commit75625f1203d9a387b028884111cad8738c455065 (patch)
tree04fe78607e2f8d1e84a0711af9f9285dd33caaf8
parent0b592956d0ac9784a7435d94ed9c06aaecc03ed3 (diff)
downloadmeta-updater-75625f1203d9a387b028884111cad8738c455065.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