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
3a7fb53a
Unverified
Commit
3a7fb53a
authored
Aug 21, 2017
by
Christian Brauner
Committed by
Stéphane Graber
Aug 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: use "which"
Somehow "type" doesn't really work. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
12d06fa3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lxc-checkconfig.in
src/lxc/lxc-checkconfig.in
+4
-4
No files found.
src/lxc/lxc-checkconfig.in
View file @
3a7fb53a
...
@@ -79,16 +79,16 @@ echo -n "Ipc namespace: " && is_enabled CONFIG_IPC_NS yes
...
@@ -79,16 +79,16 @@ echo -n "Ipc namespace: " && is_enabled CONFIG_IPC_NS yes
echo
-n
"Pid namespace: "
&&
is_enabled CONFIG_PID_NS
yes
echo
-n
"Pid namespace: "
&&
is_enabled CONFIG_PID_NS
yes
echo
-n
"User namespace: "
&&
is_enabled CONFIG_USER_NS
echo
-n
"User namespace: "
&&
is_enabled CONFIG_USER_NS
if
is_set CONFIG_USER_NS
;
then
if
is_set CONFIG_USER_NS
;
then
if
type
newuidmap
>
/dev/null 2>&1
;
then
if
which
newuidmap
>
/dev/null 2>&1
;
then
f
=
`
type
-P
newuidmap
`
f
=
`
which
newuidmap
`
if
[
!
-u
"
${
f
}
"
]
;
then
if
[
!
-u
"
${
f
}
"
]
;
then
echo
"Warning: newuidmap is not setuid-root"
echo
"Warning: newuidmap is not setuid-root"
fi
fi
else
else
echo
"newuidmap is not installed"
echo
"newuidmap is not installed"
fi
fi
if
type
newgidmap
>
/dev/null 2>&1
;
then
if
which
newgidmap
>
/dev/null 2>&1
;
then
f
=
`
type
-P
newgidmap
`
f
=
`
which
newgidmap
`
if
[
!
-u
"
${
f
}
"
]
;
then
if
[
!
-u
"
${
f
}
"
]
;
then
echo
"Warning: newgidmap is not setuid-root"
echo
"Warning: newgidmap is not setuid-root"
fi
fi
...
...
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