diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-01 14:47:09 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-07 13:48:05 +0200 |
commit | 3af0e875791779fbf3a300f5eb376b6a731d5729 (patch) | |
tree | 6560be94fd02d3902d38bde43cfde779027728ca /Makefile.am | |
parent | 934cb3541ccf22f3334b8f5f5768a23bf8ea1d52 (diff) | |
download | sssd-3af0e875791779fbf3a300f5eb376b6a731d5729.tar.gz sssd-3af0e875791779fbf3a300f5eb376b6a731d5729.tar.xz sssd-3af0e875791779fbf3a300f5eb376b6a731d5729.zip |
BUILD: Add a config option for sssd user, own private directories as the user
Adds two new configure-time options that let you select the user to run
SSSD as. The default is 'root' for backwards compatibility.
The directories the deamon stores its private data at are also created
as owned by this user during install time.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am index dd1949ed9..93f67c06b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -86,6 +86,15 @@ sudolibdir = @sudolibpath@ UNICODE_LIBS=@UNICODE_LIBS@ MKDIR_P = @MKDIR_P@ +INSTALL = @INSTALL@ + +SSSD_USER = @SSSD_USER@ +SSSD_GROUP = @SSSD_GROUP@ + +INSTALL_USER_DIR_FLAGS = -d +if SSSD_USER +INSTALL_USER_DIR_FLAGS += -o $(SSSD_USER) -g $(SSSD_GROUP) +endif AM_CFLAGS = if WANT_AUX_INFO @@ -2727,24 +2736,27 @@ installsssddirs:: $(DESTDIR)$(bindir) \ $(DESTDIR)$(sbindir) \ $(DESTDIR)$(mandir) \ + $(DESTDIR)$(pidpath) \ $(DESTDIR)$(pluginpath) \ $(DESTDIR)$(libdir)/ldb \ $(DESTDIR)$(dbuspolicydir) \ $(DESTDIR)$(dbusservicedir) \ - $(DESTDIR)$(pipepath)/private \ $(DESTDIR)$(sssdlibdir) \ $(DESTDIR)$(pkglibdir) \ - $(DESTDIR)$(sssdconfdir) \ $(DESTDIR)$(sssddatadir) \ + $(DESTDIR)$(sudolibdir) \ + $(DESTDIR)$(autofslibdir) \ + $(NULL); \ + $(INSTALL) $(INSTALL_USER_DIR_FLAGS) \ $(DESTDIR)$(dbpath) \ $(DESTDIR)$(mcpath) \ - $(DESTDIR)$(pidpath) \ - $(DESTDIR)$(logpath) \ + $(DESTDIR)$(pipepath) \ + $(DESTDIR)$(pipepath)/private \ $(DESTDIR)$(pubconfpath) \ $(DESTDIR)$(pubconfpath)/krb5.include.d \ $(DESTDIR)$(gpocachepath) \ - $(DESTDIR)$(sudolibdir) \ - $(DESTDIR)$(autofslibdir) \ + $(DESTDIR)$(sssdconfdir) \ + $(DESTDIR)$(logpath) \ $(NULL) if HAVE_DOXYGEN |