Home
last modified time | relevance | path

Searched refs:cgroup (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/system/core/libprocessgroup/
Dprocessgroup.cpp208 static std::string ConvertUidToPath(const char* cgroup, uid_t uid) { in ConvertUidToPath() argument
209 return StringPrintf("%s/uid_%d", cgroup, uid); in ConvertUidToPath()
212 static std::string ConvertUidPidToPath(const char* cgroup, uid_t uid, int pid) { in ConvertUidPidToPath() argument
213 return StringPrintf("%s/uid_%d/pid_%d", cgroup, uid, pid); in ConvertUidPidToPath()
216 static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid, unsigned int retries) { in RemoveProcessGroup() argument
218 auto uid_pid_path = ConvertUidPidToPath(cgroup, uid, pid); in RemoveProcessGroup()
219 auto uid_path = ConvertUidToPath(cgroup, uid); in RemoveProcessGroup()
374 static int DoKillProcessGroupOnce(const char* cgroup, uid_t uid, int initialPid, int signal) { in DoKillProcessGroupOnce() argument
385 auto path = ConvertUidPidToPath(cgroup, uid, initialPid) + PROCESSGROUP_CGROUP_PROCS_FILE; in DoKillProcessGroupOnce()
461 const char* cgroup = hierarchy_root_path.c_str(); in KillProcessGroup() local
[all …]
/system/core/libprocessgroup/profiles/
Dcgroups_test.h42 auto&& cgroup = cgroups_->cgroups(i); in TEST_P()
43 EXPECT_FALSE(cgroup.controller().empty()) in TEST_P()
45 EXPECT_FALSE(cgroup.path().empty()) << "No path for cgroup #" << i << " in " << file_path_; in TEST_P()
/system/sepolicy/prebuilts/api/30.0/public/
Dhal_cas.te15 r_dir_file(hal_cas, cgroup)
16 allow hal_cas cgroup:dir { search write };
17 allow hal_cas cgroup:file w_file_perms;
Dhal_drm.te19 r_dir_file(hal_drm, cgroup)
20 allow hal_drm cgroup:dir { search write };
21 allow hal_drm cgroup:file w_file_perms;
Dhal_telephony.te12 allow hal_telephony_server cgroup:dir create_dir_perms;
13 allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms;
/system/sepolicy/prebuilts/api/29.0/public/
Dhal_cas.te15 r_dir_file(hal_cas, cgroup)
16 allow hal_cas cgroup:dir { search write };
17 allow hal_cas cgroup:file w_file_perms;
Dhal_drm.te19 r_dir_file(hal_drm, cgroup)
20 allow hal_drm cgroup:dir { search write };
21 allow hal_drm cgroup:file w_file_perms;
Dhal_telephony.te12 allow hal_telephony_server cgroup:dir create_dir_perms;
13 allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms;
/system/sepolicy/prebuilts/api/32.0/public/
Dhal_cas.te15 r_dir_file(hal_cas, cgroup)
16 allow hal_cas cgroup:dir { search write };
17 allow hal_cas cgroup:file w_file_perms;
Dhal_drm.te19 r_dir_file(hal_drm, cgroup)
20 allow hal_drm cgroup:dir { search write };
21 allow hal_drm cgroup:file w_file_perms;
Dhal_telephony.te12 allow hal_telephony_server cgroup:dir create_dir_perms;
13 allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms;
/system/sepolicy/prebuilts/api/33.0/public/
Dhal_cas.te15 r_dir_file(hal_cas, cgroup)
16 allow hal_cas cgroup:dir { search write };
17 allow hal_cas cgroup:file w_file_perms;
Dhal_drm.te21 r_dir_file(hal_drm, cgroup)
22 allow hal_drm cgroup:dir { search write };
23 allow hal_drm cgroup:file w_file_perms;
Dhal_telephony.te13 allow hal_telephony_server cgroup:dir create_dir_perms;
14 allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms;
/system/sepolicy/prebuilts/api/31.0/public/
Dhal_cas.te15 r_dir_file(hal_cas, cgroup)
16 allow hal_cas cgroup:dir { search write };
17 allow hal_cas cgroup:file w_file_perms;
Dhal_drm.te19 r_dir_file(hal_drm, cgroup)
20 allow hal_drm cgroup:dir { search write };
21 allow hal_drm cgroup:file w_file_perms;
Dhal_telephony.te12 allow hal_telephony_server cgroup:dir create_dir_perms;
13 allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms;
/system/core/libprocessgroup/setup/
Dcgroup_map_write.cpp148 const Json::Value& cgroup, const std::string& name, in MergeCgroupToDescriptors() argument
150 const std::string cgroup_path = cgroup["Path"].asString(); in MergeCgroupToDescriptors()
165 if (cgroup["NeedsActivation"].isBool() && cgroup["NeedsActivation"].asBool()) { in MergeCgroupToDescriptors()
169 if (cgroup["Optional"].isBool() && cgroup["Optional"].asBool()) { in MergeCgroupToDescriptors()
174 cgroups_version, name, path, std::strtoul(cgroup["Mode"].asString().c_str(), 0, 8), in MergeCgroupToDescriptors()
175 cgroup["UID"].asString(), cgroup["GID"].asString(), controller_flags); in MergeCgroupToDescriptors()
/system/sepolicy/prebuilts/api/34.0/public/
Dhal_cas.te20 r_dir_file(hal_cas, cgroup)
21 allow hal_cas cgroup:dir { search write };
22 allow hal_cas cgroup:file w_file_perms;
Dhal_drm.te21 r_dir_file(hal_drm, cgroup)
22 allow hal_drm cgroup:dir { search write };
23 allow hal_drm cgroup:file w_file_perms;
Dhal_telephony.te13 allow hal_telephony_server cgroup:dir create_dir_perms;
14 allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms;
/system/sepolicy/public/
Dhal_cas.te20 r_dir_file(hal_cas, cgroup)
21 allow hal_cas cgroup:dir { search write };
22 allow hal_cas cgroup:file w_file_perms;
Dhal_drm.te21 r_dir_file(hal_drm, cgroup)
22 allow hal_drm cgroup:dir { search write };
23 allow hal_drm cgroup:file w_file_perms;
Dhal_telephony.te13 allow hal_telephony_server cgroup:dir create_dir_perms;
14 allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms;
/system/core/rootdir/
Dinit.rc37 # cgroup for system_server and surfaceflinger
123 chown system system /dev/stune/cgroup.procs
124 chown system system /dev/stune/foreground/cgroup.procs
125 chown system system /dev/stune/background/cgroup.procs
126 chown system system /dev/stune/top-app/cgroup.procs
127 chown system system /dev/stune/rt/cgroup.procs
133 chmod 0664 /dev/stune/cgroup.procs
134 chmod 0664 /dev/stune/foreground/cgroup.procs
135 chmod 0664 /dev/stune/background/cgroup.procs
136 chmod 0664 /dev/stune/top-app/cgroup.procs
[all …]

12345678910>>...13