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
f7a8609f
Unverified
Commit
f7a8609f
authored
Feb 26, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: add --enable-pam
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
7ac43d3d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
configure.ac
configure.ac
+13
-4
Makefile.am
src/lxc/Makefile.am
+4
-0
No files found.
configure.ac
View file @
f7a8609f
...
@@ -607,7 +607,14 @@ else
...
@@ -607,7 +607,14 @@ else
fi
fi
AM_CONDITIONAL([IS_BIONIC], [test "x$is_bionic" = "xyes"])
AM_CONDITIONAL([IS_BIONIC], [test "x$is_bionic" = "xyes"])
AC_ARG_WITH(
# Configuration examples
AC_ARG_ENABLE([pam],
[AC_HELP_STRING([--enable-pam], [enable pam module [default=no]])],
[], [enable_pam=no])
AM_CONDITIONAL([ENABLE_PAM], [test "x$enable_pam" = "xyes"])
AM_COND_IF([ENABLE_PAM],
[AC_ARG_WITH(
[pamdir],
[pamdir],
[AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored,
[AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored,
or "none" if PAM modules are not to be built])],
or "none" if PAM modules are not to be built])],
...
@@ -619,10 +626,11 @@ AC_ARG_WITH(
...
@@ -619,10 +626,11 @@ AC_ARG_WITH(
pamdir="\$(libdir)/security"
pamdir="\$(libdir)/security"
fi
fi
]
]
)
)]
)
AM_CONDITIONAL([HAVE_PAM], [test x"$pamdir" != "xnone"])
AM_CONDITIONAL([HAVE_PAM], [test x"$pamdir" != "xnone"])
if test "z$pamdir" != "znone"; then
AM_COND_IF([ENABLE_PAM],
[if test "z$pamdir" != "znone"; then
AC_ARG_VAR([PAM_CFLAGS], [C compiler flags for pam])
AC_ARG_VAR([PAM_CFLAGS], [C compiler flags for pam])
AC_ARG_VAR([PAM_LIBS], [linker flags for pam])
AC_ARG_VAR([PAM_LIBS], [linker flags for pam])
AC_CHECK_LIB(
AC_CHECK_LIB(
...
@@ -634,7 +642,7 @@ if test "z$pamdir" != "znone"; then
...
@@ -634,7 +642,7 @@ if test "z$pamdir" != "znone"; then
AC_SUBST(PAM_LIBS)
AC_SUBST(PAM_LIBS)
AC_SUBST([pamdir])
AC_SUBST([pamdir])
fi
fi])
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
...
@@ -956,6 +964,7 @@ Security features:
...
@@ -956,6 +964,7 @@ Security features:
- SELinux: $enable_selinux
- SELinux: $enable_selinux
PAM:
PAM:
- PAM module: $enable_pam
- cgroup PAM module: $pamdir
- cgroup PAM module: $pamdir
Bindings:
Bindings:
...
...
src/lxc/Makefile.am
View file @
f7a8609f
...
@@ -305,6 +305,7 @@ init_lxc_static_LDADD = @CAP_LIBS@
...
@@ -305,6 +305,7 @@ init_lxc_static_LDADD = @CAP_LIBS@
init_lxc_static_CFLAGS
=
$(AM_CFLAGS)
-DNO_LXC_CONF
init_lxc_static_CFLAGS
=
$(AM_CFLAGS)
-DNO_LXC_CONF
endif
endif
if
ENABLE_PAM
if
HAVE_PAM
if
HAVE_PAM
pam_LTLIBRARIES
=
pam_cgfs.la
pam_LTLIBRARIES
=
pam_cgfs.la
pam_cgfs_la_SOURCES
=
pam/pam_cgfs.c macro.h
pam_cgfs_la_SOURCES
=
pam/pam_cgfs.c macro.h
...
@@ -312,6 +313,7 @@ pam_cgfs_la_CFLAGS = $(AM_CFLAGS)
...
@@ -312,6 +313,7 @@ pam_cgfs_la_CFLAGS = $(AM_CFLAGS)
pam_cgfs_la_LIBADD
=
$(AM_LIBS)
$(PAM_LIBS)
-L
$(top_srcdir)
pam_cgfs_la_LIBADD
=
$(AM_LIBS)
$(PAM_LIBS)
-L
$(top_srcdir)
pam_cgfs_la_LDFLAGS
=
$(AM_LDFLAGS)
-module
-avoid-version
-shared
pam_cgfs_la_LDFLAGS
=
$(AM_LDFLAGS)
-module
-avoid-version
-shared
endif
endif
endif
install-exec-local
:
install-libLTLIBRARIES
install-exec-local
:
install-libLTLIBRARIES
mkdir
-p
$(DESTDIR)$(datadir)
/lxc
mkdir
-p
$(DESTDIR)$(datadir)
/lxc
...
@@ -327,6 +329,7 @@ install-exec-hook:
...
@@ -327,6 +329,7 @@ install-exec-hook:
uninstall-local
:
uninstall-local
:
$(RM)
$(DESTDIR)$(libdir)
/liblxc.so
*
$(RM)
$(DESTDIR)$(libdir)
/liblxc.so
*
if
ENABLE_PAM
if
HAVE_PAM
if
HAVE_PAM
$(RM)
$(DESTDIR)$(pamdir)/pam_cgfs.so*
$(RM)
$(DESTDIR)$(pamdir)/pam_cgfs.so*
...
@@ -334,3 +337,4 @@ install-data-hook: install-pamLTLIBRARIES
...
@@ -334,3 +337,4 @@ install-data-hook: install-pamLTLIBRARIES
$(RM)
"
$(DESTDIR)$(pamdir)
/pam_cgfs.la"
$(RM)
"
$(DESTDIR)$(pamdir)
/pam_cgfs.la"
$(RM)
"
$(DESTDIR)$(pamdir)
/pam_cgfs.a"
$(RM)
"
$(DESTDIR)$(pamdir)
/pam_cgfs.a"
endif
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