tizen: Do not try to read /proc/1/cgroup from unprivileged processes
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 11 Apr 2017 07:26:57 +0000 (16:26 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 29 May 2024 22:07:10 +0000 (00:07 +0200)
commite8841bcc06882ec41129e7d1ebdc6f71f16bd143
tree387902378d43bf36a805b1104d48a9d62bf75c32
parentfd6019ca49936625bbb7ec2f1268feb2b7ae1303
tizen: Do not try to read /proc/1/cgroup from unprivileged processes

In Tizen access to /proc/1 is restricted via Smack. However, there are
unprivileged functions that need to work with information from this dir.
This function caches cgroup information in /run, allowing system-wide
access to this information.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I2a2977400c7917804599cfb6f225dab897dc8b14
src/basic/cgroup-util.c
src/basic/special.h
src/core/cgroup.c