Skip to contentSkip to conversation

tools/xenpaging: install directory with default permission

PATCH In review Wei Liu 2 participants 3 messages Oct 21, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 tools/xenpaging: install directory with default permission

There is no need to explicitly ask for 700.

---
 tools/xenpaging/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenpaging/Makefile +1 -1
index 2407a30..4badaae 100644
@@ -24,7 +24,7 @@ xenpaging: $(OBJS)
 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(APPEND_LDFLAGS)
 
 install: all
-	$(INSTALL_DIR) -m 0700 $(DESTDIR)$(XEN_PAGING_DIR)
+	$(INSTALL_DIR) $(DESTDIR)$(XEN_PAGING_DIR)
 	$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
 	$(INSTALL_PROG) $(IBINS) $(DESTDIR)$(LIBEXEC_BIN)
 
Signature · 1 line
2.1.4
#1 lore raw
Quoted 1 line · Wei Liu

There is no need to explicitly ask for 700.

Is the rationale for 0700 explicitly not that the files in here will contain possibly sensitive date from guest memory?

i.e. the use of something other than the default is deliberate.

If you think that is wrong then I think the changelog should explain why.

Quoted 18 lines
---
 tools/xenpaging/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenpaging/Makefile +1 -1
index 2407a30..4badaae 100644
@@ -24,7 +24,7 @@ xenpaging: $(OBJS)
 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(APPEND_LDFLAGS)
 
 install: all
-	$(INSTALL_DIR) -m 0700 $(DESTDIR)$(XEN_PAGING_DIR)
+	$(INSTALL_DIR) $(DESTDIR)$(XEN_PAGING_DIR)
 	$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
 	$(INSTALL_PROG) $(IBINS) $(DESTDIR)$(LIBEXEC_BIN)
 
author
#2 lore raw
Quoted 8 lines · Ian Campbell
Quoted 1 line · Wei Liu

There is no need to explicitly ask for 700.

Is the rationale for 0700 explicitly not that the files in here will contain possibly sensitive date from guest memory?

i.e. the use of something other than the default is deliberate.

You're right. Please ignore this patch.

Wei.

Quoted 21 lines

If you think that is wrong then I think the changelog should explain why.

Quoted 18 lines
---
 tools/xenpaging/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenpaging/Makefile +1 -1
index 2407a30..4badaae 100644
@@ -24,7 +24,7 @@ xenpaging: $(OBJS)
 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(APPEND_LDFLAGS)
 
 install: all
-	$(INSTALL_DIR) -m 0700 $(DESTDIR)$(XEN_PAGING_DIR)
+	$(INSTALL_DIR) $(DESTDIR)$(XEN_PAGING_DIR)
 	$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
 	$(INSTALL_PROG) $(IBINS) $(DESTDIR)$(LIBEXEC_BIN)