revert userdata group

Signed-off-by: luojunlin <luojunlin5@huawei.com>
Change-Id: I7b59867d8983c68fb072057e60103d5015786e93
This commit is contained in:
luojunlin 2024-10-18 14:41:40 +08:00
parent 7a1ff9c795
commit 7b588c73ac
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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",

View File

@ -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",

View File

@ -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;