Skip to contentSkip to conversation

tools: create XEN_DUMP_DIR with mode 0700

PATCH Applied Wei Liu 2 participants 4 messages Oct 21, 2015 – Nov 3, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 tools: create XEN_DUMP_DIR with mode 0700

That directory is used to store guest memory dump which contains sensitive information.

---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/Makefile +1 -1
index 2618559..820ca40 100644
@@ -58,7 +58,7 @@ build all: subdirs-all
 
 .PHONY: install
 install: subdirs-install
-	$(INSTALL_DIR) $(DESTDIR)$(XEN_DUMP_DIR)
+	$(INSTALL_DIR) -m 700 $(DESTDIR)$(XEN_DUMP_DIR)
 	$(INSTALL_DIR) $(DESTDIR)/var/log/xen
 	$(INSTALL_DIR) $(DESTDIR)/var/lib/xen
 
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Wei Liu

That directory is used to store guest memory dump which contains sensitive information.

Have you audited all the paths we create and determined that this is the only one which needs adjusting in this way?

OOI, what lead you to be concerned about the permissions on the directories we are creating (first the xenpaging one, now this)?

Ian.

author
#2 lore raw
Quoted 11 lines · Ian Campbell
Quoted 4 lines · Wei Liu

That directory is used to store guest memory dump which contains sensitive information.

Have you audited all the paths we create and determined that this is the only one which needs adjusting in this way?

No, I haven't audited all paths. I fixed this as I noticed it needed fixing.

Quoted 3 lines

OOI, what lead you to be concerned about the permissions on the directories we are creating (first the xenpaging one, now this)?

I noticed the permission of xenpaging and dumpdir were different when I was doing some random things. And I wrongly assumed that xenpaging directory should be fixed. Now this patch does the right thing -- it's dumpdir's permission that should be fixed.

Wei.

Quoted 1 line

Ian.

Applied
#3 lore raw
In reply to Ian Campbell
Quoted 7 lines · Ian Campbell
Quoted 4 lines · Wei Liu

That directory is used to store guest memory dump which contains sensitive information.

Applied.

Quoted 6 lines

Have you audited all the paths we create and determined that this is the only one which needs adjusting in this way?

OOI, what lead you to be concerned about the permissions on the directories
we are creating (first the xenpaging one, now this)?

Thanks for your reply to this bit.

Ian.