canonical/cloud-init

World writable /usr/lib/cloud-init/clouddir should not be left behind

开放

#4,189 创建于 2023年6月15日

 (5 条评论) (1 个反应) (0 位负责人)Python (1,108 个派生)auto 404
buggood first issue

仓库指标

星标
 (3,772 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Bug report

Work was done last year to ensure that when /tmp and /var/tmp are hardend with noexec, cloud-init will use an alternative path under /usr/lib/cloud-init

However, /usr/lib/cloud-init/clouddir is created as world writable and left behind after cloud-init has exited.

Steps to reproduce the problem

Run cloud-init with a /tmp and /var/tmp that are mounted with noexec

If possible, /usr/lib/cloud-init/clouddir should be created as non-world read/writable. But if that's not possible, at the least it should be removed when cloud-init exits.

贡献者指南