forked from freebsd/freebsd-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openzfs: attach pam_zfs_key to build
This PAM module allows unlocking encrypted user home datasets when logging in (and changing passphrase when changing the account password), see openzfs/zfs#9903 Also supposed to unload the key when the last session for the user is done, but there are EBUSY issues: openzfs/zfs#11222 (comment) Submitted by: Greg V <greg_unrelenting.technology> Reviewed by: mm MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D28018
- Loading branch information
Greg V
authored and
Ryan Moeller
committed
Mar 2, 2021
1 parent
99adf23
commit ee21ee1
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.PATH: ${SRCTOP}/sys/contrib/openzfs/contrib/pam_zfs_key | ||
.PATH: ${SRCTOP}/sys/contrib/openzfs/include | ||
|
||
PACKAGE= utilities | ||
LIB= pam_zfs_key | ||
|
||
SHLIBDIR?= /usr/lib | ||
|
||
LIBADD= zfs zfs_core nvpair uutil crypto | ||
|
||
SRCS= pam_zfs_key.c | ||
|
||
WARNS?= 2 | ||
CSTD= c99 | ||
CFLAGS+= -DIN_BASE | ||
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include | ||
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ | ||
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd | ||
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include | ||
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include | ||
CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h | ||
CFLAGS+= -DHAVE_ISSETUGID | ||
CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h | ||
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs | ||
CFLAGS+= -DRUNSTATEDIR=\"/var/run\" | ||
|
||
.include "../../lib/libpam/modules/Makefile.inc" | ||
.include <bsd.lib.mk> |