29 lines
934 B
Diff
29 lines
934 B
Diff
|
changeset: 24227:1027e7d13d02
|
||
|
user: Olaf Hering <olaf@aepfle.de>
|
||
|
date: Sun Nov 20 18:26:16 2011 +0100
|
||
|
files: tools/xenpaging/xenpaging.c
|
||
|
description:
|
||
|
xenpaging: restrict pagefile permissions
|
||
|
|
||
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
||
|
Committed-by: Ian Jackson <ian.jackson.citrix.com>
|
||
|
|
||
|
|
||
|
---
|
||
|
tools/xenpaging/xenpaging.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
Index: xen-4.1.2-testing/tools/xenpaging/xenpaging.c
|
||
|
===================================================================
|
||
|
--- xen-4.1.2-testing.orig/tools/xenpaging/xenpaging.c
|
||
|
+++ xen-4.1.2-testing/tools/xenpaging/xenpaging.c
|
||
|
@@ -795,7 +795,7 @@ int main(int argc, char *argv[])
|
||
|
xc_interface *xch;
|
||
|
|
||
|
int open_flags = O_CREAT | O_TRUNC | O_RDWR;
|
||
|
- mode_t open_mode = S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IWGRP | S_IWOTH;
|
||
|
+ mode_t open_mode = S_IRUSR | S_IWUSR;
|
||
|
int fd;
|
||
|
|
||
|
/* Initialise domain paging */
|