Skip to contentSkip to conversation

tools/xenpaging: create dumpdir with mode 0700

PATCH New Olaf Hering 1 participant 1 message Sep 19, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/xenpaging: create dumpdir with mode 0700

The swapfiles contain sensitive guest info.
Another reason for this change is the fact that rpm will refuse to install xen.rpm if two packages own the same directory with different permissions. xen-tools.rpm from SUSE has permissions 0700 for this directory, so bring upstream in line with that.

---
 tools/xenpaging/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenpaging/Makefile +1 -1
index 4ff3375..fedd0fb 100644
@@ -23,7 +23,7 @@ xenpaging: $(OBJS)
 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(APPEND_LDFLAGS)
 
 install: all
-	$(INSTALL_DIR) $(DESTDIR)$(XEN_PAGING_DIR)
+	$(INSTALL_DIR) -m 0700 $(DESTDIR)$(XEN_PAGING_DIR)
 	$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC)
 	$(INSTALL_PROG) $(IBINS) $(DESTDIR)$(LIBEXEC)