Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
59410099
Unverified
Commit
59410099
authored
Jul 03, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: update terminology II
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
c27f081b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cgroup2_devices.c
src/lxc/cgroups/cgroup2_devices.c
+6
-6
No files found.
src/lxc/cgroups/cgroup2_devices.c
View file @
59410099
...
@@ -299,8 +299,8 @@ int bpf_program_finalize(struct bpf_program *prog)
...
@@ -299,8 +299,8 @@ int bpf_program_finalize(struct bpf_program *prog)
TRACE
(
"Implementing %s bpf device cgroup program"
,
TRACE
(
"Implementing %s bpf device cgroup program"
,
prog
->
device_list_type
==
LXC_BPF_DEVICE_CGROUP_DENYLIST
prog
->
device_list_type
==
LXC_BPF_DEVICE_CGROUP_DENYLIST
?
"
black
list"
?
"
deny
list"
:
"
white
list"
);
:
"
allow
list"
);
ins
[
0
]
=
BPF_MOV64_IMM
(
BPF_REG_0
,
prog
->
device_list_type
);
ins
[
0
]
=
BPF_MOV64_IMM
(
BPF_REG_0
,
prog
->
device_list_type
);
ins
[
1
]
=
BPF_EXIT_INSN
();
ins
[
1
]
=
BPF_EXIT_INSN
();
...
@@ -451,11 +451,11 @@ int bpf_list_add_device(struct lxc_conf *conf, struct device_item *device)
...
@@ -451,11 +451,11 @@ int bpf_list_add_device(struct lxc_conf *conf, struct device_item *device)
device
->
global_rule
>
LXC_BPF_DEVICE_CGROUP_LOCAL_RULE
)
{
device
->
global_rule
>
LXC_BPF_DEVICE_CGROUP_LOCAL_RULE
)
{
TRACE
(
"Switched from %s to %s"
,
TRACE
(
"Switched from %s to %s"
,
cur
->
global_rule
==
LXC_BPF_DEVICE_CGROUP_ALLOWLIST
cur
->
global_rule
==
LXC_BPF_DEVICE_CGROUP_ALLOWLIST
?
"
white
list"
?
"
allow
list"
:
"
black
list"
,
:
"
deny
list"
,
device
->
global_rule
==
LXC_BPF_DEVICE_CGROUP_ALLOWLIST
device
->
global_rule
==
LXC_BPF_DEVICE_CGROUP_ALLOWLIST
?
"
white
list"
?
"
allow
list"
:
"
black
list"
);
:
"
deny
list"
);
cur
->
global_rule
=
device
->
global_rule
;
cur
->
global_rule
=
device
->
global_rule
;
return
1
;
return
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment