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
ad1ab969
Unverified
Commit
ad1ab969
authored
Dec 18, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attach: simplify significantly
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
a2f65700
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
af_unix.c
src/lxc/af_unix.c
+4
-3
attach.c
src/lxc/attach.c
+0
-0
attach.c
src/tests/attach.c
+4
-3
No files found.
src/lxc/af_unix.c
View file @
ad1ab969
...
...
@@ -22,14 +22,15 @@
*/
#include "config.h"
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <sys/syscall.h>
#include <sys/un.h>
#include "log.h"
...
...
src/lxc/attach.c
View file @
ad1ab969
This diff is collapsed.
Click to expand it.
src/tests/attach.c
View file @
ad1ab969
...
...
@@ -25,9 +25,10 @@
#include <sys/types.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <errno.h>
#include <unistd.h>
#define TSTNAME "lxc-attach-test"
#define TSTOUT(fmt, ...) do { \
...
...
@@ -78,7 +79,7 @@ static void test_attach_lsm_set_config(struct lxc_container *ct)
static
int
test_attach_lsm_func_func
(
void
*
payload
)
{
TSTOUT
(
"%s"
,
lsm_process_label_get
(
getpid
(
)));
TSTOUT
(
"%s"
,
lsm_process_label_get
(
syscall
(
SYS_getpid
)));
return
0
;
}
...
...
@@ -189,7 +190,7 @@ static int test_attach_lsm_cmd(struct lxc_container *ct) { return 0; }
static
int
test_attach_func_func
(
void
*
payload
)
{
TSTOUT
(
"%d"
,
getpid
(
));
TSTOUT
(
"%d"
,
(
int
)
syscall
(
SYS_getpid
));
return
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