tools: create XEN_DUMP_DIR with mode 0700
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
@@ -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
Quoted 4 lines · Wei Liu
That directory is used to store guest memory dump which contains sensitive information.
Signed-off-by Wei Liu <[email protected]>
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.
Quoted 11 lines · Ian Campbell
Quoted 4 lines · Wei Liu
That directory is used to store guest memory dump which contains sensitive information.
Signed-off-by Wei Liu <[email protected]>Acked-by Ian Campbell <[email protected]>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.
Ian Campbell
AppliedQuoted 7 lines · Ian Campbell
Quoted 4 lines · Wei Liu
That directory is used to store guest memory dump which contains sensitive information.
Signed-off-by Wei Liu <[email protected]>Acked-by Ian Campbell <[email protected]>
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.