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
e4db08ed
Unverified
Commit
e4db08ed
authored
Feb 17, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: check correct variable
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
e219f8e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cgfsng.c
src/lxc/cgroups/cgfsng.c
+2
-2
No files found.
src/lxc/cgroups/cgfsng.c
View file @
e4db08ed
...
...
@@ -1060,10 +1060,10 @@ static int __cgroup_tree_create(int dfd_base, const char *path, mode_t mode,
* we're paranoid here and check that the path is neither
* absolute nor walks upwards.
*/
if
(
abspath
(
buf
))
if
(
abspath
(
cur
))
return
syserrno_set
(
-
EINVAL
,
"No absolute paths allowed"
);
if
(
strnequal
(
buf
,
".."
,
STRLITERALLEN
(
".."
)))
if
(
strnequal
(
cur
,
".."
,
STRLITERALLEN
(
".."
)))
return
syserrno_set
(
-
EINVAL
,
"No upward walking paths allowed"
);
ret
=
mkdirat
(
dfd_cur
,
cur
,
mode
);
...
...
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