pam: Add a pam_malcontent.so
module to enforce time-limited sessions
This involves adding a build-time dependency on PAM. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
e16759e0f7
commit
bd7b17ffd4
7 changed files with 271 additions and 3 deletions
10
meson.build
10
meson.build
|
@ -19,12 +19,19 @@ po_dir = join_paths(meson.source_root(), 'po')
|
|||
prefix = get_option('prefix')
|
||||
bindir = join_paths(prefix, get_option('bindir'))
|
||||
datadir = join_paths(prefix, get_option('datadir'))
|
||||
libdir = join_paths(prefix, get_option('libdir'))
|
||||
libexecdir = join_paths(prefix, get_option('libexecdir'))
|
||||
|
||||
# FIXME: This isn’t exposed in accountsservice.pc
|
||||
# See https://gitlab.freedesktop.org/accountsservice/accountsservice/merge_requests/16
|
||||
accountsserviceinterfacesdir = join_paths(datadir, 'accountsservice', 'interfaces')
|
||||
|
||||
# FIXME: pam.pc doesn’t exist
|
||||
pamlibdir = get_option('pamlibdir')
|
||||
if pamlibdir == ''
|
||||
pamlibdir = join_paths(prefix, libdir.split('/')[-1], 'security')
|
||||
endif
|
||||
|
||||
dbus = dependency('dbus-1')
|
||||
dbusinterfacesdir = dbus.get_pkgconfig_variable('interfaces_dir',
|
||||
define_variable: ['datadir', datadir])
|
||||
|
@ -120,4 +127,5 @@ test_env = [
|
|||
|
||||
subdir('accounts-service')
|
||||
subdir('malcontent-client')
|
||||
subdir('libmalcontent')
|
||||
subdir('libmalcontent')
|
||||
subdir('pam')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue