Skip to content

Commit

Permalink
feat: add fsguard module
Browse files Browse the repository at this point in the history
  • Loading branch information
axtloss authored Jan 7, 2024
1 parent 2ca49af commit e2454f9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/vib-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: vanilla-os/[email protected]
- uses: vanilla-os/[email protected]
with:
recipe: 'recipe.yml'
plugins: 'Vanilla-OS/vib-fsguard:v1.0-3'

- name: Build the Docker image
run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/desktop:main .
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/vib-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: vanilla-os/[email protected]
- uses: vanilla-os/[email protected]
with:
recipe: 'recipe.yml'
plugins: 'Vanilla-OS/vib-fsguard:v1.0-3'

- name: Build the Docker image
run: docker image build -f Containerfile --tag vanillaos/desktop .
Expand Down
3 changes: 3 additions & 0 deletions includes.container/usr/sbin/init
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
/usr/sbin/FsGuard verify /FsGuard/filelist
exec /usr/lib/systemd/systemd "$@"
14 changes: 14 additions & 0 deletions recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ modules:
- apt upgrade -y
- apt clean
- apt-mark hold snapd gnome-software-plugin-snap
- apt install minisign

- name: vanilla-tools
type: shell
Expand Down Expand Up @@ -79,3 +80,16 @@ modules:
- apt autoremove -y
- apt clean
- lpkg --lock

- name: fsguard
type: fsguard
FsGuardLocation: "/usr/sbin/FsGuard"
GenerateKey: true
FilelistPaths: ["/usr/bin"]
modules:
- name: remove-prev-fsguard
type: shell
commands:
- rm -rf /FsGuard
- rm -f ./minisign.pub ./minisign.key
- chmod +x /usr/sbin/init

0 comments on commit e2454f9

Please sign in to comment.