summaryrefslogtreecommitdiff
path: root/src/shared/cgroup-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-15 14:05:00 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-15 14:05:03 +0200
commit6c03089c32c251d823173bda4d809a9e643219f0 (patch)
tree8dc4afd1fe07208b30f5849954404b30b209c660 /src/shared/cgroup-util.h
parent4a875b6133c9ef0e984547f7ce3b09356be4f7bc (diff)
bus: handle env vars safely
Make sure that our library is safe for usage in SUID programs when it comes to env var handling
Diffstat (limited to 'src/shared/cgroup-util.h')
-rw-r--r--src/shared/cgroup-util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/cgroup-util.h b/src/shared/cgroup-util.h
index 06c6bfb2e3..123f72c69f 100644
--- a/src/shared/cgroup-util.h
+++ b/src/shared/cgroup-util.h
@@ -69,11 +69,15 @@ int cg_is_empty_by_spec(const char *spec, bool ignore_self);
int cg_is_empty_recursive(const char *controller, const char *path, bool ignore_self);
int cg_get_user_path(char **path);
+
+int cg_path_get_unit(const char *path, char **unit);
+int cg_path_get_user_unit(const char *path, char **unit);
+
int cg_pid_get_cgroup(pid_t pid, char **root, char **cgroup);
int cg_pid_get_unit(pid_t pid, char **unit);
int cg_pid_get_user_unit(pid_t pid, char **unit);
-int cgroup_to_unit(char *cgroup, char **unit);
+int cg_cgroup_to_unit(const char *cgroup, char **unit);
char **cg_shorten_controllers(char **controllers);