mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 07:02:43 +00:00
revert userdata group
Signed-off-by: luojunlin <luojunlin5@huawei.com> Change-Id: I7b59867d8983c68fb072057e60103d5015786e93
This commit is contained in:
parent
7a1ff9c795
commit
7b588c73ac
@ -36,7 +36,7 @@ static bool DropRootPrivileges()
|
||||
{
|
||||
int ret;
|
||||
const char *userName = "shell";
|
||||
vector<const char *> groupsNames = { "shell", "log", "readproc", "file_manager", "user_data_rw" };
|
||||
vector<const char *> groupsNames = { "shell", "log", "readproc", "file_manager" };
|
||||
struct passwd *user;
|
||||
gid_t *gids = nullptr;
|
||||
|
||||
|
@ -73,7 +73,7 @@
|
||||
"name" : "hdcd",
|
||||
"path" : ["/system/bin/hdcd"],
|
||||
"uid" : "shell",
|
||||
"gid" : [ "shell", "log", "readproc", "file_manager", "user_data_rw", "netsys_socket" ],
|
||||
"gid" : [ "shell", "log", "readproc", "file_manager", "netsys_socket" ],
|
||||
"socket" : [{
|
||||
"name" : "hdcd",
|
||||
"family" : "AF_UNIX",
|
||||
|
@ -87,7 +87,7 @@
|
||||
"name" : "hdcd",
|
||||
"path" : ["/system/bin/hdcd"],
|
||||
"uid" : "root",
|
||||
"gid" : [ "root", "shell", "log", "readproc", "file_manager", "user_data_rw" ],
|
||||
"gid" : [ "root", "shell", "log", "readproc", "file_manager" ],
|
||||
"socket" : [{
|
||||
"name" : "hdcd",
|
||||
"family" : "AF_UNIX",
|
||||
|
@ -193,7 +193,7 @@ bool DropRootPrivileges()
|
||||
{
|
||||
int ret;
|
||||
const char *userName = "shell";
|
||||
vector<const char *> groupsNames = { "shell", "log", "readproc", "file_manager", "user_data_rw" };
|
||||
vector<const char *> groupsNames = { "shell", "log", "readproc", "file_manager" };
|
||||
struct passwd *user;
|
||||
gid_t *gids = nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user