Revert "sysfs: fix permissions on cgroup mounts"
This reverts commit 7a25491ced
.
This was broken; I need to look further into it.
This commit is contained in:
parent
7a25491ced
commit
e860b7cb4f
@ -101,12 +101,11 @@ mount_cgroups()
|
|||||||
{
|
{
|
||||||
mountinfo -q /sys/fs/cgroup || return 0
|
mountinfo -q /sys/fs/cgroup || return 0
|
||||||
|
|
||||||
local opts="${sysfs_opts},mode=755"
|
|
||||||
if ! mountinfo -q /sys/fs/cgroup/openrc; then
|
if ! mountinfo -q /sys/fs/cgroup/openrc; then
|
||||||
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
|
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
|
||||||
mkdir /sys/fs/cgroup/openrc
|
mkdir /sys/fs/cgroup/openrc
|
||||||
mount -n -t cgroup \
|
mount -n -t cgroup \
|
||||||
-o none,${opts},name=openrc,release_agent="$agent" \
|
-o none,${sysfs_opts},name=openrc,release_agent="$agent" \
|
||||||
openrc /sys/fs/cgroup/openrc
|
openrc /sys/fs/cgroup/openrc
|
||||||
echo 1 > /sys/fs/cgroup/openrc/notify_on_release
|
echo 1 > /sys/fs/cgroup/openrc/notify_on_release
|
||||||
fi
|
fi
|
||||||
@ -115,7 +114,7 @@ mount_cgroups()
|
|||||||
while read name hier groups enabled rest; do
|
while read name hier groups enabled rest; do
|
||||||
case "${enabled}" in
|
case "${enabled}" in
|
||||||
1) mkdir /sys/fs/cgroup/${name}
|
1) mkdir /sys/fs/cgroup/${name}
|
||||||
mount -n -t cgroup -o ${opts},${name} \
|
mount -n -t cgroup -o ${sysfs_opts},${name} \
|
||||||
${name} /sys/fs/cgroup/${name}
|
${name} /sys/fs/cgroup/${name}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user