nspawn: add nosuid and nodev to /tmp mount (#6004)
authortomty89 <tom.ty89@gmail.com>
Tue, 23 May 2017 07:41:36 +0000 (15:41 +0800)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 May 2017 07:41:36 +0000 (09:41 +0200)
commite8a94ce83ebc5e5fa0dd312d8340d589506528f9
tree9ac0ace9d712f88576ed2a8466fa3d351c611985
parent764febc23ee9a22fa64981adb0be901f964df93d
nspawn: add nosuid and nodev to /tmp mount (#6004)

When automatic /tmp mount was introduced to nspawn in v219, it was done without having the nosuid and nodev mount options, which was the same case as systemd's default tmp.mount unit back then.

nosuid and nodev was added to tmp.mount(.m4) in v231 for security reasons. matching the nspawn /tmp mount entry against that.

Ref.:
https://github.com/systemd/systemd/commit/2f9df7c96a25adb42093ee3ee201577f3e01da42
https://github.com/systemd/systemd/commit/bbb99c30d01a8bcdc27fb151cc6376a7877a6b07
src/nspawn/nspawn-mount.c