/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos.lsm

  • Committer: Teddy Hogeborn
  • Date: 2024-09-09 01:36:41 UTC
  • Revision ID: teddy@recompile.se-20240909013641-6zu6kx2f7meu134k
Make all required directories when installing

When installing into a normal system, one can assume that target
directories, such as /usr/bin, already exists.  But when installing
into a subdirectory for the purpose of creating a package, one cannot
assume that all directories already exist.  Therefore, when
installing, we must not check if any directories exist, and must
instead always create any directories we want to install into.

* Makefile (confdir/mandos.conf, confdir/clients.conf, install-html):
  Use the "-D" option to "install" instead of creating the directory
  separately.
  (install-server): Move creation of $(CONFDIR) down to before it is
  needed.  Don't check if the $(TMPFILES) or $(SYSUSERS) directories
  exist; instead create them by using the "-D" option to "install".
  Create the $(PREFIX)/sbin directory.  Always use
  "--target-directory" if possible; i.e. if the file name is the same.
  Create the $(DBUSPOLICYDIR) and $(DESTDIR)/etc/init.d directories by
  using the "-D" option to "install".  Don't check if the $(SYSTEMD)
  directory exists; instead create it by using the "-D" option to
  "install".  Create the $(DESTDIR)/etc/default and $(MANDIR)/man8
  directories by using the "-D" option to "install".  Create the
  $(MANDIR)/man5 directories explicitly.
  (install-client-nokey): Remove unnecessary creation of the
  $(CONFDIR) directory.  Don't check if the $(SYSUSERS) directory
  exists; instead create it by using the "-D" option to "install".
  Move the "--directory" argument to be the first argument, for
  clarity.  Create the $(PREFIX)/sbin directory.  Use the "-D"
  argument to "install" when installing
  $(INITRAMFSTOOLS)/hooks/mandos,
  $(INITRAMFSTOOLS)/conf.d/mandos-conf,
  $(INITRAMFSTOOLS)/conf-hooks.d/zz-mandos,
  $(INITRAMFSTOOLS)/scripts/init-premount/mandos,
  $(INITRAMFSTOOLS)/scripts/local-premount/mandos,
  $(DRACUTMODULE)/ask-password-mandos.path, and
  $(DRACUTMODULE)/dracut-module/ask-password-mandos.service.  Create
  the $(MANDIR)/man8 directory.

Reported-By: Erich Eckner <erich@eckner.net>
Thanks: Erich Eckner <erich@eckner.net> for analysis

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Begin4
2
2
Title:          Mandos
3
 
Version:        1.0.14
4
 
Entered-date:   2009-10-25
 
3
Version:        1.8.16
 
4
Entered-date:   2023-02-08
5
5
Description:    The Mandos system allows computers to have encrypted
6
 
root file systems and at the same time be capable of remote and/or
7
 
unattended reboots.
 
6
                root file systems and at the same time be capable of
 
7
                remote and/or unattended reboots.
8
8
Keywords:       boot, encryption, luks, cryptsetup, network, openpgp,
9
 
tls, dm-crypt
10
 
Author:         teddy@fukt.bsnet.se (Teddy Hogeborn),
11
 
                belorn@fukt.bsnet.se (Björn Påhlsson)
12
 
Maintained-by:  teddy@fukt.bsnet.se (Teddy Hogeborn),
13
 
                belorn@fukt.bsnet.se (Björn Påhlsson)
14
 
Primary-site: http://www.fukt.bsnet.se/mandos
15
 
              103K mandos_1.0.14.orig.tar.gz
16
 
Alternate-site: ftp://ftp.fukt.bsnet.se/pub/mandos
17
 
                103K mandos_1.0.14.orig.tar.gz
18
 
Platforms:      Requires GCC, GNU libC, Avahi, GnuPG, Python 2.5, and
19
 
various other libraries.  While made for Debian GNU/Linux, it is
20
 
probably portable to other distributions, but not other Unixes.
21
 
Copying-policy: GNU General Public License version 3.0 or later
 
9
                tls, dm-crypt
 
10
Author:         teddy@recompile.se (Teddy Hogeborn),
 
11
                belorn@recompile.se (Björn Påhlsson)
 
12
Maintained-by:  teddy@recompile.se (Teddy Hogeborn),
 
13
                belorn@recompile.se (Björn Påhlsson)
 
14
Primary-site:   https://www.recompile.se/mandos
 
15
                240K mandos_1.8.16.orig.tar.gz
 
16
Alternate-site: ftp://ftp.recompile.se/pub/mandos
 
17
                240K mandos_1.8.16.orig.tar.gz
 
18
Platforms:      Requires GCC, GNU libC, Avahi, GnuPG, Python 2.7, and
 
19
                various other libraries.  While made for Debian
 
20
                GNU/Linux, it is probably portable to other
 
21
                distributions, but not other Unixes.
 
22
Copying-policy: GNU General Public License version 3.0 or later
22
23
End