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
44c7d9c3
Unverified
Commit
44c7d9c3
authored
Aug 27, 2019
by
Stéphane Graber
Committed by
GitHub
Aug 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3097 from lpirl/proc-1-uid_map-permission-denied
suppress false-negative error in templates and nvidia hook
parents
61287e52
16a312e1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
7 deletions
+31
-7
nvidia
hooks/nvidia
+6
-2
lxc-busybox.in
templates/lxc-busybox.in
+6
-1
lxc-download.in
templates/lxc-download.in
+6
-1
lxc-local.in
templates/lxc-local.in
+7
-2
lxc-oci.in
templates/lxc-oci.in
+6
-1
No files found.
hooks/nvidia
View file @
44c7d9c3
...
...
@@ -58,8 +58,12 @@ in_userns() {
echo
$fields
|
grep
-q
" 0 1$"
&&
{
echo
userns-root
;
return
;
}
||
true
done
< /proc/self/uid_map
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
&&
\
{
echo
userns-root
;
return
;
}
if
[
-e
/proc/1/uid_map
]
;
then
if
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
;
then
echo
userns-root
return
fi
fi
echo yes
}
...
...
templates/lxc-busybox.in
View file @
44c7d9c3
...
...
@@ -42,7 +42,12 @@ in_userns() {
fi
done
< /proc/self/uid_map
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
&&
{
echo
userns-root
;
return
;
}
if
[
-e
/proc/1/uid_map
]
;
then
if
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
;
then
echo
userns-root
return
fi
fi
echo yes
}
...
...
templates/lxc-download.in
View file @
44c7d9c3
...
...
@@ -179,7 +179,12 @@ in_userns() {
fi
done
< /proc/self/uid_map
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
&&
{
echo
userns-root
;
return
;
}
if
[
-e
/proc/1/uid_map
]
;
then
if
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
;
then
echo
userns-root
return
fi
fi
echo yes
}
...
...
templates/lxc-local.in
View file @
44c7d9c3
...
...
@@ -51,8 +51,13 @@ in_userns() {
fi
done
< /proc/self/uid_map
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
&&
{
echo
userns-root
;
return
;
}
echo yes
if
[
-e
/proc/1/uid_map
]
;
then
if
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
;
then
echo
userns-root
return
fi
fi
echo yes
}
usage
()
{
...
...
templates/lxc-oci.in
View file @
44c7d9c3
...
...
@@ -62,7 +62,12 @@ in_userns() {
fi
done
< /proc/self/uid_map
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
&&
{
echo
userns-root
;
return
;
}
if
[
-e
/proc/1/uid_map
]
;
then
if
[
"
$(
cat
/proc/self/uid_map
)
"
=
"
$(
cat
/proc/1/uid_map
)
"
]
;
then
echo
userns-root
return
fi
fi
echo yes
}
...
...
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