Skip to content

Commit 54008fe

Browse files
committed
hybris-patches: Remove /dev/cg2_bpf cgroup device.
[hybris-patches] Remove /dev/cg2_bpf cgroup device. JB#45921 Signed-off-by: Matti Kosola <matti.kosola@jolla.com>
1 parent 859a5fe commit 54008fe

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Matti Kosola <matti.kosola@jolla.com>
3+
Date: Mon, 14 Dec 2020 15:55:58 +0100
4+
Subject: [PATCH] (hybris) Remove /dev/cg2_bpf cgroup device.
5+
6+
Systemd v238 mixes cgroup permissions if something else is
7+
changing permissions of cgroup mounted devices. This cg2_bpf
8+
device is used by netd and it is not running in Sailfish OS.
9+
10+
Change-Id: Ie0de704f977a21505d5bb66e1bc571818173baab
11+
Signed-off-by: Matti Kosola <matti.kosola@jolla.com>
12+
---
13+
rootdir/init.rc | 4 ----
14+
1 file changed, 4 deletions(-)
15+
16+
diff --git a/rootdir/init.rc b/rootdir/init.rc
17+
index e33f891..0431a96 100644
18+
--- a/rootdir/init.rc
19+
+++ b/rootdir/init.rc
20+
@@ -224,10 +224,6 @@ on init
21+
# This is needed by any process that uses socket tagging.
22+
chmod 0644 /dev/xt_qtaguid
23+
24+
- mkdir /dev/cg2_bpf
25+
- mount cgroup2 cg2_bpf /dev/cg2_bpf nodev noexec nosuid
26+
- chown root root /dev/cg2_bpf
27+
- chmod 0600 /dev/cg2_bpf
28+
mount bpf bpf /sys/fs/bpf nodev noexec nosuid
29+
30+
# Create location for fs_mgr to store abbreviated output from filesystem
31+
--
32+
2.7.4
33+

0 commit comments

Comments
 (0)