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
fe880ab2
Unverified
Commit
fe880ab2
authored
Jul 17, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caps: hide unnecessary symbols
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
60fd6174
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
Makefile.am
src/lxc/Makefile.am
+7
-0
caps.h
src/lxc/caps.h
+9
-9
No files found.
src/lxc/Makefile.am
View file @
fe880ab2
...
@@ -331,6 +331,7 @@ LDADD = liblxc.la \
...
@@ -331,6 +331,7 @@ LDADD = liblxc.la \
if
ENABLE_TOOLS
if
ENABLE_TOOLS
lxc_attach_SOURCES
=
tools/lxc_attach.c
\
lxc_attach_SOURCES
=
tools/lxc_attach.c
\
tools/arguments.c tools/arguments.h
\
tools/arguments.c tools/arguments.h
\
caps.c caps.h
\
rexec.c rexec.h
\
rexec.c rexec.h
\
string_utils.c string_utils.h
string_utils.c string_utils.h
lxc_autostart_SOURCES
=
tools/lxc_autostart.c
\
lxc_autostart_SOURCES
=
tools/lxc_autostart.c
\
...
@@ -353,6 +354,7 @@ lxc_device_SOURCES = tools/lxc_device.c \
...
@@ -353,6 +354,7 @@ lxc_device_SOURCES = tools/lxc_device.c \
string_utils.c string_utils.h
string_utils.c string_utils.h
lxc_execute_SOURCES
=
tools/lxc_execute.c
\
lxc_execute_SOURCES
=
tools/lxc_execute.c
\
tools/arguments.c tools/arguments.h
\
tools/arguments.c tools/arguments.h
\
caps.c caps.h
\
string_utils.c string_utils.h
string_utils.c string_utils.h
lxc_freeze_SOURCES
=
tools/lxc_freeze.c
\
lxc_freeze_SOURCES
=
tools/lxc_freeze.c
\
tools/arguments.c tools/arguments.h
\
tools/arguments.c tools/arguments.h
\
...
@@ -373,6 +375,7 @@ lxc_copy_SOURCES = tools/lxc_copy.c \
...
@@ -373,6 +375,7 @@ lxc_copy_SOURCES = tools/lxc_copy.c \
string_utils.c string_utils.h
string_utils.c string_utils.h
lxc_start_SOURCES
=
tools/lxc_start.c
\
lxc_start_SOURCES
=
tools/lxc_start.c
\
tools/arguments.c tools/arguments.h
\
tools/arguments.c tools/arguments.h
\
caps.c caps.h
\
string_utils.c string_utils.h
string_utils.c string_utils.h
lxc_stop_SOURCES
=
tools/lxc_stop.c
\
lxc_stop_SOURCES
=
tools/lxc_stop.c
\
tools/arguments.c tools/arguments.h
\
tools/arguments.c tools/arguments.h
\
...
@@ -385,6 +388,7 @@ lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \
...
@@ -385,6 +388,7 @@ lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \
string_utils.c string_utils.h
string_utils.c string_utils.h
lxc_unshare_SOURCES
=
tools/lxc_unshare.c
\
lxc_unshare_SOURCES
=
tools/lxc_unshare.c
\
tools/arguments.c tools/arguments.h
\
tools/arguments.c tools/arguments.h
\
caps.c caps.h
\
string_utils.c string_utils.h
\
string_utils.c string_utils.h
\
syscall_numbers.h
\
syscall_numbers.h
\
syscall_wrappers.h
syscall_wrappers.h
...
@@ -419,6 +423,7 @@ init_lxc_LDFLAGS = -pthread
...
@@ -419,6 +423,7 @@ init_lxc_LDFLAGS = -pthread
lxc_monitord_SOURCES
=
cmd/lxc_monitord.c
\
lxc_monitord_SOURCES
=
cmd/lxc_monitord.c
\
af_unix.c af_unix.h
\
af_unix.c af_unix.h
\
caps.c caps.h
\
log.c log.h
\
log.c log.h
\
mainloop.c mainloop.h
\
mainloop.c mainloop.h
\
monitor.c monitor.h
\
monitor.c monitor.h
\
...
@@ -428,6 +433,7 @@ lxc_monitord_SOURCES = cmd/lxc_monitord.c \
...
@@ -428,6 +433,7 @@ lxc_monitord_SOURCES = cmd/lxc_monitord.c \
utils.c utils.h
utils.c utils.h
lxc_user_nic_SOURCES
=
cmd/lxc_user_nic.c
\
lxc_user_nic_SOURCES
=
cmd/lxc_user_nic.c
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
caps.c caps.h
\
log.c log.h
\
log.c log.h
\
memory_utils.h
\
memory_utils.h
\
network.c network.h
\
network.c network.h
\
...
@@ -440,6 +446,7 @@ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \
...
@@ -440,6 +446,7 @@ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \
syscall_wrappers.h
syscall_wrappers.h
lxc_usernsexec_SOURCES
=
cmd/lxc_usernsexec.c
\
lxc_usernsexec_SOURCES
=
cmd/lxc_usernsexec.c
\
af_unix.c af_unix.h
\
af_unix.c af_unix.h
\
caps.c caps.h
\
conf.c conf.h
\
conf.c conf.h
\
file_utils.c file_utils.h
\
file_utils.c file_utils.h
\
list.h
\
list.h
\
...
...
src/lxc/caps.h
View file @
fe880ab2
...
@@ -6,20 +6,20 @@
...
@@ -6,20 +6,20 @@
#include <stdbool.h>
#include <stdbool.h>
#include "config.h"
#include "config.h"
#include "compiler.h"
#if HAVE_LIBCAP
#if HAVE_LIBCAP
#include <linux/types.h>
/* workaround for libcap < 2.17 bug */
#include <linux/types.h>
/* workaround for libcap < 2.17 bug */
#include <sys/capability.h>
#include <sys/capability.h>
extern
int
lxc_caps_down
(
void
);
__hidden
extern
int
lxc_caps_down
(
void
);
extern
int
lxc_caps_up
(
void
);
__hidden
extern
int
lxc_caps_up
(
void
);
extern
int
lxc_ambient_caps_up
(
void
);
__hidden
extern
int
lxc_ambient_caps_up
(
void
);
extern
int
lxc_ambient_caps_down
(
void
);
__hidden
extern
int
lxc_ambient_caps_down
(
void
);
extern
int
lxc_caps_init
(
void
);
__hidden
extern
int
lxc_caps_init
(
void
);
extern
int
lxc_caps_last_cap
(
void
);
__hidden
extern
int
lxc_caps_last_cap
(
void
);
extern
bool
lxc_proc_cap_is_set
(
cap_value_t
cap
,
cap_flag_t
flag
);
__hidden
extern
bool
lxc_proc_cap_is_set
(
cap_value_t
cap
,
cap_flag_t
flag
);
extern
bool
lxc_file_cap_is_set
(
const
char
*
path
,
cap_value_t
cap
,
__hidden
extern
bool
lxc_file_cap_is_set
(
const
char
*
path
,
cap_value_t
cap
,
cap_flag_t
flag
);
cap_flag_t
flag
);
#else
#else
static
inline
int
lxc_caps_down
(
void
)
static
inline
int
lxc_caps_down
(
void
)
{
{
...
...
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