X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios-vnet-ctrl.c;h=86ec1296ad75a24f269ab8779518faec5fb4a4a5;hb=541bd219aaa76d3b00de8060affbc62a5692162a;hp=308a559a182293fe014a3cf0388f9d0766b63a31;hpb=5c2a2684778fa080c41a0f04518721ebe476efb1;p=palacios.git diff --git a/linux_module/palacios-vnet-ctrl.c b/linux_module/palacios-vnet-ctrl.c index 308a559..86ec129 100644 --- a/linux_module/palacios-vnet-ctrl.c +++ b/linux_module/palacios-vnet-ctrl.c @@ -925,7 +925,7 @@ static int init_proc_files(void) { return -1; } - route_entry = create_proc_entry("routes", 0, vnet_root); + route_entry = create_proc_entry("routes", 0644, vnet_root); if (route_entry == NULL) { remove_proc_entry("vnet", NULL); return -1; @@ -933,7 +933,7 @@ static int init_proc_files(void) { route_entry->proc_fops = &route_fops; - link_entry = create_proc_entry("links", 0, vnet_root); + link_entry = create_proc_entry("links", 0644, vnet_root); if (link_entry == NULL) { remove_proc_entry("routes", vnet_root); remove_proc_entry("vnet", NULL); @@ -942,7 +942,7 @@ static int init_proc_files(void) { link_entry->proc_fops = &link_fops; - stat_entry = create_proc_entry("stats", 0, vnet_root); + stat_entry = create_proc_entry("stats", 0644, vnet_root); if(stat_entry == NULL) { remove_proc_entry("links", vnet_root); remove_proc_entry("routes", vnet_root); @@ -952,7 +952,7 @@ static int init_proc_files(void) { stat_entry->proc_fops = &stat_fops; - debug_entry = create_proc_entry("debug", 0, vnet_root); + debug_entry = create_proc_entry("debug", 0644, vnet_root); if(debug_entry == NULL) { remove_proc_entry("links", vnet_root); remove_proc_entry("routes", vnet_root); @@ -975,7 +975,7 @@ static void destroy_proc_files(void) { remove_proc_entry("links", vnet_root); remove_proc_entry("routes", vnet_root); remove_proc_entry("stats", vnet_root); - remove_proc_entry("vnet", NULL); + remove_proc_entry("vnet", palacios_get_procdir()); } @@ -1010,6 +1010,8 @@ void vnet_ctrl_deinit(void){ vnet_ctrl_s.status = 0; + palacios_spinlock_deinit(&(vnet_ctrl_s.lock)); + INFO("VNET Control Deinit Finished\n"); }