Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Man pages for chkboot, chkboot-check and chkboot-desktopalert #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Generated manpages
*.8
20 changes: 18 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,21 @@ DEFAULT = $(DESTDIR)/etc/default
PROFILED = $(DESTDIR)/etc/profile.d
LIB = $(DESTDIR)/usr/lib
SHARE = $(DESTDIR)/usr/share
MAN = $(SHARE)/man

all:
MANPAGES = man/chkboot.8 \
man/chkboot-check.8 \
man/chkboot-desktopalert.8

all: man

man: $(MANPAGES)

$(MANPAGES): %.8: %.8.rst
rst2man $< > $@

clean:
rm -vf man/*.8

install:
install -D -m644 chkboot.conf $(DEFAULT)/chkboot.conf
Expand All @@ -24,4 +37,7 @@ install-systemd: install
install -D -m644 chkboot.service $(LIB)/systemd/system/chkboot.service
install -D -m755 chkboot-bootcheck $(LIB)/systemd/scripts/chkboot-bootcheck

.PHONY: all install install-initcpio install-pacman install-systemd
install-man: man
$(foreach manpage,$(MANPAGES),install -D -m644 $(manpage) $(MAN)/man8/$(notdir $(manpage));)

.PHONY: all install install-initcpio install-pacman install-systemd man install-man clean
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,27 @@ make install-initcpio
make install-systemd
```

### To install man pages:

Note: manpages are generated from ReStructuredText. They need rst2man from
python-docutils:

On Arch-linux:
```
pacman -S python-docutils
```

On Debian-like:
```
apt install python3-docutils
```

Install the manpages:

```
make install-man
```

Manual Installation
-------------------

Expand Down
33 changes: 33 additions & 0 deletions man/chkboot-check.8.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
=============
chkboot-check
=============

------------------------------------------
prints changes detected in your boot files
------------------------------------------

:Author: Ju <[email protected]>, Giancarlo Razzolini <[email protected]>,
Chris Warner <[email protected]> and Kevin MacMartin <[email protected]>
:Date: 2019-04-17
:Copyright: GPL-2
:Version: 1.3
:Manual section: 8
:Manual group: System Manager's Manual

SYNOPSIS
========

``chkboot-check``

DESCRIPTION
===========

Print a detailed diff of added, changes and removed files, detected by
``chkboot``.

It will also print a warning when the MBR has been modified.

SEE ALSO
========

* ``man chkboot`` and ``man chkboot-desktopalert``
35 changes: 35 additions & 0 deletions man/chkboot-desktopalert.8.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
====================
chkboot-desktopalert
====================

------------------------------------------
notify changes detected in your boot files
------------------------------------------

:Author: Ju <[email protected]>, Giancarlo Razzolini <[email protected]>,
Chris Warner <[email protected]> and Kevin MacMartin <[email protected]>
:Date: 2019-04-17
:Copyright: GPL-2
:Version: 1.3
:Manual section: 8
:Manual group: System Manager's Manual

SYNOPSIS
========

``chkboot-desktopalert``

DESCRIPTION
===========

Display a notification with a detailed diff of added, changes and removed files,
detected by ``chkboot``.

It will also display a notification when the MBR has been modified.

**You will need to add this program to your desktop environment's autostart.**

SEE ALSO
========

* ``man chkboot`` and ``man chkboot-check``
61 changes: 61 additions & 0 deletions man/chkboot.8.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
=======
chkboot
=======

---------------------------------------------------------------
checks for unwanted modification on unencrypted /boot partition
---------------------------------------------------------------

:Author: Ju <[email protected]>, Giancarlo Razzolini <[email protected]>,
Chris Warner <[email protected]> and Kevin MacMartin <[email protected]>
:Date: 2019-04-17
:Copyright: GPL-2
:Version: 1.3
:Manual section: 8
:Manual group: System Manager's Manual

SYNOPSIS
========

``chkboot`` [OPTIONS]

DESCRIPTION
===========

Checks for any modification to your boot files since last run.

--update, -u Mark changes as valid. Next run of ``chkboot`` will not
warn about differences.
--help, -h Show this help message and exit.


``chkboot`` runs at system startup to check for boot files modifications. User
will be warn upon login if any are found.

Kernel upgrade are automatically marked as valid.

Configurations, such as boot partition, can be edited in:

``/etc/default/chkboot``

EXAMPLES
========

Acknowledge a detected changed after ``chkboot`` have displayed a warning:

``chkboot``

Clear valid modifications made by users:

``chkboot -u``

SEE ALSO
========

* ``man chkboot-check`` and ``man chkboot-desktopalert``

BUGS
====

* GPT partitions are not supported. As chkboot will continue to work, it **will
not report changes in GPT headers** (only protective MBR).