From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 20 of 20] xenpaging: restrict pagefile permissions Date: Sun, 20 Nov 2011 19:34:25 +0100 Message-ID: <9f0156c725381ee25d96.1321814065@probook.site> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1321809976 -3600 # Node ID 9f0156c725381ee25d96637aa5b486443b2641e5 # Parent 47fd37efc3738f6c75af73ccbed0e87eb12ab31f xenpaging: restrict pagefile permissions Signed-off-by: Olaf Hering diff -r 47fd37efc373 -r 9f0156c72538 tools/xenpaging/xenpaging.c --- a/tools/xenpaging/xenpaging.c +++ b/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 */