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
e31ee985
Unverified
Commit
e31ee985
authored
Feb 20, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autotools: handle getgrgid_r on bionic
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
0c03b4eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
13 deletions
+7
-13
configure.ac
configure.ac
+1
-5
Makefile.am
src/lxc/Makefile.am
+2
-8
conf.c
src/lxc/conf.c
+4
-0
No files found.
configure.ac
View file @
e31ee985
...
@@ -665,11 +665,7 @@ AC_CHECK_LIB(pthread, main)
...
@@ -665,11 +665,7 @@ AC_CHECK_LIB(pthread, main)
AC_CHECK_FUNCS(pthread_atfork)
AC_CHECK_FUNCS(pthread_atfork)
AC_CHECK_FUNCS(statvfs)
AC_CHECK_FUNCS(statvfs)
AC_CHECK_LIB(util, openpty)
AC_CHECK_LIB(util, openpty)
AC_CHECK_FUNCS([openpty hasmntopt setmntent endmntent utmpxname])
AC_CHECK_FUNCS([getgrgid_r openpty hasmntopt setmntent endmntent utmpxname])
AC_CHECK_FUNCS([getgrgid_r],
AM_CONDITIONAL(HAVE_GETGRGID_R, true)
AC_DEFINE(HAVE_GETGRGID_R,1,[Have getgrgid_r]),
AM_CONDITIONAL(HAVE_GETGRGID_R, false))
AC_CHECK_FUNCS([getline],
AC_CHECK_FUNCS([getline],
AM_CONDITIONAL(HAVE_GETLINE, true)
AM_CONDITIONAL(HAVE_GETLINE, true)
AC_DEFINE(HAVE_GETLINE,1,[Have getline]),
AC_DEFINE(HAVE_GETLINE,1,[Have getline]),
...
...
src/lxc/Makefile.am
View file @
e31ee985
...
@@ -44,6 +44,7 @@ noinst_HEADERS = \
...
@@ -44,6 +44,7 @@ noinst_HEADERS = \
if
IS_BIONIC
if
IS_BIONIC
noinst_HEADERS
+=
\
noinst_HEADERS
+=
\
../include/fexecve.h
\
../include/fexecve.h
\
../include/getgrgid_r.h
\
../include/ifaddrs.h
\
../include/ifaddrs.h
\
../include/openpty.h
\
../include/openpty.h
\
../include/lxcmntent.h
../include/lxcmntent.h
...
@@ -59,10 +60,6 @@ if !HAVE_GETSUBOPT
...
@@ -59,10 +60,6 @@ if !HAVE_GETSUBOPT
noinst_HEADERS
+=
../include/getsubopt.h
noinst_HEADERS
+=
../include/getsubopt.h
endif
endif
if
!HAVE_GETGRGID_R
noinst_HEADERS
+=
../include/getgrgid_r.h
endif
sodir
=
$(libdir)
sodir
=
$(libdir)
LSM_SOURCES
=
\
LSM_SOURCES
=
\
...
@@ -142,6 +139,7 @@ endif
...
@@ -142,6 +139,7 @@ endif
if
IS_BIONIC
if
IS_BIONIC
liblxc_la_SOURCES
+=
\
liblxc_la_SOURCES
+=
\
../include/fexecve.c ../include/fexecve.h
\
../include/fexecve.c ../include/fexecve.h
\
../include/getgrgid_r.c ../include/getgrgid_r.h
\
../include/ifaddrs.c ../include/ifaddrs.h
\
../include/ifaddrs.c ../include/ifaddrs.h
\
../include/openpty.c ../include/openpty.h
\
../include/openpty.c ../include/openpty.h
\
../include/lxcmntent.c ../include/lxcmntent.h
../include/lxcmntent.c ../include/lxcmntent.h
...
@@ -326,10 +324,6 @@ if !HAVE_STRLCAT
...
@@ -326,10 +324,6 @@ if !HAVE_STRLCAT
init_lxc_static_SOURCES
+=
../include/strlcat.c ../include/strlcat.h
init_lxc_static_SOURCES
+=
../include/strlcat.c ../include/strlcat.h
endif
endif
if
!HAVE_GETGRGID_R
liblxc_la_SOURCES
+=
../include/getgrgid_r.c ../include/getgrgid_r.h
endif
init_lxc_static_LDFLAGS
=
-all-static
init_lxc_static_LDFLAGS
=
-all-static
init_lxc_static_LDADD
=
@CAP_LIBS@
init_lxc_static_LDADD
=
@CAP_LIBS@
init_lxc_static_CFLAGS
=
$(AM_CFLAGS)
-DNO_LXC_CONF
init_lxc_static_CFLAGS
=
$(AM_CFLAGS)
-DNO_LXC_CONF
...
...
src/lxc/conf.c
View file @
e31ee985
...
@@ -88,6 +88,10 @@
...
@@ -88,6 +88,10 @@
#include "utils.h"
#include "utils.h"
#include "lsm/lsm.h"
#include "lsm/lsm.h"
#if !HAVE_GETGRGID_R
#include "../include/getgrgid_r.h"
#endif
#if HAVE_LIBCAP
#if HAVE_LIBCAP
#include <sys/capability.h>
#include <sys/capability.h>
#endif
#endif
...
...
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