Skip to content

Conversation

LordGrimmauld
Copy link
Contributor

These changes are useful on FHS-noncompliant systems, such as NixOS.

Currently, augenrules is just broken. In an effort to align our package more closely with upstream, i wanted to make use of this script. However, its reliance on absolute paths is a detriment to that effort, requiring some patching:

NixOS/nixpkgs@d54599d

Prefixing $PATH is normal and common, but i would rather we don't need to replace paths to auditctl and ls.

We already use rm and mktemp from $PATH, it makes
little sense to use an absolute path just for `ls`.
It is part of coreutils too.
expecting a shell to be in `/bin/sh` is not super portable for non-FHS systems.
While systemd does implicitly expect /bin/sh to exist,
this may not be the case on systemd-less systems.
`/usr/bin/env` is still an absolute path, but at least using env
 allows replacing the interpreter shell via $PATH.
This allows running augenrules even if auditctl was not
installed to `/sbin/auditctl` at system-wide fs root.
This may be the case e.g. on non-FHS-compliant systems,
as well as during testing when installing to a temporary prefix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant