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
28bb9321
Commit
28bb9321
authored
Jan 15, 2014
by
Qiang Huang
Committed by
Stéphane Graber
Jan 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroup.c: redefine the valid cgroup name
Signed-off-by:
Qiang Huang
<
h.huangqiang@huawei.com
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
b408e70d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
cgroup.c
src/lxc/cgroup.c
+5
-1
No files found.
src/lxc/cgroup.c
View file @
28bb9321
...
...
@@ -1669,7 +1669,11 @@ bool is_valid_cgroup(const char *name)
{
const
char
*
p
;
for
(
p
=
name
;
*
p
;
p
++
)
{
if
(
*
p
<
32
||
*
p
==
127
||
*
p
==
'/'
)
/* Use the ASCII printable characters range(32 - 127)
* is reasonable, we kick out 32(SPACE) because it'll
* break legacy lxc-ls
*/
if
(
*
p
<=
32
||
*
p
>=
127
||
*
p
==
'/'
)
return
false
;
}
return
strcmp
(
name
,
"."
)
!=
0
&&
strcmp
(
name
,
".."
)
!=
0
;
...
...
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