mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 18:14:53 +00:00
tools: acrn-manager: fix the possibility of creating directory at will by no permission process
There are several duplicate definitions for check_dir, it can check or create directory at will. However, only acrnd and dm monitor can create the directory. This commit fixs the possibility of creating directory at will by no permission process, which adds a param flags to conctrl if it should create the directory. By the way, this commit collates related MACRO into the same file , deletes the duplicate definitions in another files and fixs some format issues. Tracked-On: #2886 Signed-off-by: Mao Jiang <maox.jiang@intel.com> Acked-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
16a2af5715
commit
e50c0c88fb
@@ -10,12 +10,6 @@
|
||||
#include <acrn_common.h>
|
||||
#include "acrn_mngr.h"
|
||||
|
||||
#define ACRN_CONF_PATH "/usr/share/acrn/conf"
|
||||
#define ACRN_CONF_PATH_ADD ACRN_CONF_PATH "/add"
|
||||
#define ACRN_CONF_TIMER_LIST ACRN_CONF_PATH "/timer_list"
|
||||
|
||||
#define ACRN_DM_SOCK_PATH "/run/acrn/mngr"
|
||||
|
||||
enum vm_state {
|
||||
VM_STATE_UNKNOWN = 0,
|
||||
VM_CREATED, /* VM created / awaiting start (boot) */
|
||||
|
||||
Reference in New Issue
Block a user