Ticket #12064: bug12064_part1.patch

File bug12064_part1.patch, 1.7 KB (added by alphawolf, 6 years ago)

Patch on master. Only tested that it compiles and runs.

  • src/or/main.c

    From 6699c3415d57f3bfb21c93e0a8c580fdc4a75c30 Mon Sep 17 00:00:00 2001
    From: Michael Wolf <mikewolf@riseup.net>
    Date: Tue, 20 May 2014 22:52:16 -0400
    Subject: [PATCH] sandbox: allow access to various stats/*-stats files
    
    Fix for 12064 part 1
    ---
     src/or/main.c | 12 ++++++++++++
     1 file changed, 12 insertions(+)
    
    diff --git a/src/or/main.c b/src/or/main.c
    index 025b519..f7a02c2 100644
    a b sandbox_init_filter(void) 
    28482848        get_datadir_fname2("stats", "bridge-stats.tmp"),
    28492849        get_datadir_fname2("stats", "dirreq-stats"),
    28502850        get_datadir_fname2("stats", "dirreq-stats.tmp"),
     2851        get_datadir_fname2("stats", "entry-stats"),
     2852        get_datadir_fname2("stats", "entry-stats.tmp"),
     2853        get_datadir_fname2("stats", "exit-stats"),
     2854        get_datadir_fname2("stats", "exit-stats.tmp"),
     2855        get_datadir_fname2("stats", "buffer-stats"),
     2856        get_datadir_fname2("stats", "buffer-stats.tmp"),
     2857        get_datadir_fname2("stats", "conn-stats"),
     2858        get_datadir_fname2("stats", "conn-stats.tmp"),
    28512859        get_datadir_fname("fingerprint"),
    28522860        get_datadir_fname("fingerprint.tmp"),
    28532861        get_datadir_fname("hashed-fingerprint"),
    sandbox_init_filter(void) 
    28712879    RENAME_SUFFIX2("keys", "secret_onion_key.old", ".tmp");
    28722880    RENAME_SUFFIX2("stats", "bridge-stats", ".tmp");
    28732881    RENAME_SUFFIX2("stats", "dirreq-stats", ".tmp");
     2882    RENAME_SUFFIX2("stats", "entry-stats", ".tmp");
     2883    RENAME_SUFFIX2("stats", "exit-stats", ".tmp");
     2884    RENAME_SUFFIX2("stats", "buffer-stats", ".tmp");
     2885    RENAME_SUFFIX2("stats", "conn-stats", ".tmp");
    28742886    RENAME_SUFFIX("hashed-fingerprint", ".tmp");
    28752887    RENAME_SUFFIX("router-stability", ".tmp");
    28762888