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
ae026f55
Unverified
Commit
ae026f55
authored
Jul 11, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attach: cleanup log messages in lxc_attach()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
3f62938a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
attach.c
src/lxc/attach.c
+5
-5
No files found.
src/lxc/attach.c
View file @
ae026f55
...
@@ -1064,7 +1064,7 @@ int lxc_attach(const char *name, const char *lxcpath,
...
@@ -1064,7 +1064,7 @@ int lxc_attach(const char *name, const char *lxcpath,
init_pid
=
lxc_cmd_get_init_pid
(
name
,
lxcpath
);
init_pid
=
lxc_cmd_get_init_pid
(
name
,
lxcpath
);
if
(
init_pid
<
0
)
{
if
(
init_pid
<
0
)
{
ERROR
(
"Failed to get init pid
.
"
);
ERROR
(
"Failed to get init pid"
);
return
-
1
;
return
-
1
;
}
}
...
@@ -1098,10 +1098,10 @@ int lxc_attach(const char *name, const char *lxcpath,
...
@@ -1098,10 +1098,10 @@ int lxc_attach(const char *name, const char *lxcpath,
conf
=
init_ctx
->
container
->
lxc_conf
;
conf
=
init_ctx
->
container
->
lxc_conf
;
if
(
!
fetch_seccomp
(
init_ctx
->
container
,
options
))
if
(
!
fetch_seccomp
(
init_ctx
->
container
,
options
))
WARN
(
"Failed to get seccomp policy
.
"
);
WARN
(
"Failed to get seccomp policy"
);
if
(
!
no_new_privs
(
init_ctx
->
container
,
options
))
if
(
!
no_new_privs
(
init_ctx
->
container
,
options
))
WARN
(
"Could not determine whether PR_SET_NO_NEW_PRIVS is set
.
"
);
WARN
(
"Could not determine whether PR_SET_NO_NEW_PRIVS is set"
);
cwd
=
getcwd
(
NULL
,
0
);
cwd
=
getcwd
(
NULL
,
0
);
...
@@ -1217,7 +1217,7 @@ int lxc_attach(const char *name, const char *lxcpath,
...
@@ -1217,7 +1217,7 @@ int lxc_attach(const char *name, const char *lxcpath,
*/
*/
ret
=
socketpair
(
PF_LOCAL
,
SOCK_STREAM
|
SOCK_CLOEXEC
,
0
,
ipc_sockets
);
ret
=
socketpair
(
PF_LOCAL
,
SOCK_STREAM
|
SOCK_CLOEXEC
,
0
,
ipc_sockets
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
SYSERROR
(
"Could not set up required IPC mechanism for attaching
.
"
);
SYSERROR
(
"Could not set up required IPC mechanism for attaching"
);
free
(
cwd
);
free
(
cwd
);
lxc_proc_put_context_info
(
init_ctx
);
lxc_proc_put_context_info
(
init_ctx
);
return
-
1
;
return
-
1
;
...
@@ -1232,7 +1232,7 @@ int lxc_attach(const char *name, const char *lxcpath,
...
@@ -1232,7 +1232,7 @@ int lxc_attach(const char *name, const char *lxcpath,
*/
*/
pid
=
fork
();
pid
=
fork
();
if
(
pid
<
0
)
{
if
(
pid
<
0
)
{
SYSERROR
(
"Failed to create first subprocess
.
"
);
SYSERROR
(
"Failed to create first subprocess"
);
free
(
cwd
);
free
(
cwd
);
lxc_proc_put_context_info
(
init_ctx
);
lxc_proc_put_context_info
(
init_ctx
);
return
-
1
;
return
-
1
;
...
...
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