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

feat: add fsguard module #41

Merged
merged 4 commits into from
Jan 7, 2024
Merged
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
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