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
dddf7c5b
Commit
dddf7c5b
authored
Feb 19, 2016
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgfs: also check for EACCES when writing devices
Because that's what lxcfs gives us. Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
4f875f70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cgfs.c
src/lxc/cgfs.c
+2
-2
No files found.
src/lxc/cgfs.c
View file @
dddf7c5b
...
@@ -1918,12 +1918,12 @@ static int do_setup_cgroup_limits(struct cgfs_data *d,
...
@@ -1918,12 +1918,12 @@ static int do_setup_cgroup_limits(struct cgfs_data *d,
cgroup_devices_has_allow_or_deny
(
d
,
cg
->
value
,
true
))
cgroup_devices_has_allow_or_deny
(
d
,
cg
->
value
,
true
))
continue
;
continue
;
if
(
lxc_cgroup_set_data
(
cg
->
subsystem
,
cg
->
value
,
d
))
{
if
(
lxc_cgroup_set_data
(
cg
->
subsystem
,
cg
->
value
,
d
))
{
if
(
do_devices
&&
errno
==
EPERM
)
{
if
(
do_devices
&&
(
errno
==
EACCES
||
errno
==
EPERM
)
)
{
WARN
(
"Error setting %s to %s for %s"
,
WARN
(
"Error setting %s to %s for %s"
,
cg
->
subsystem
,
cg
->
value
,
d
->
name
);
cg
->
subsystem
,
cg
->
value
,
d
->
name
);
continue
;
continue
;
}
}
ERROR
(
"Error setting %s to %s for %s"
,
SYS
ERROR
(
"Error setting %s to %s for %s"
,
cg
->
subsystem
,
cg
->
value
,
d
->
name
);
cg
->
subsystem
,
cg
->
value
,
d
->
name
);
goto
out
;
goto
out
;
}
}
...
...
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