forked from secureblue/secureblue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bac2a6
commit 6d0a02f
Showing
9 changed files
with
41 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/usr/share/gvfs/mounts/admin.mount | ||
+++ b/usr/share/gvfs/mounts/admin.mount | ||
@@ -1,7 +1,7 @@ | ||
[Mount] | ||
Type=admin | ||
# Add a dummy argument after pkexec, or '/bin/sh -c' will eat the first argument in '$@' | ||
-Exec=/bin/sh -c 'pkexec /usr/libexec/gvfsd-admin "$@" --address $DBUS_SESSION_BUS_ADDRESS --dir $XDG_RUNTIME_DIR' gvfsd-admin | ||
+Exec=/bin/sh -c 'run0 --setenv=PKEXEC_UID="$UID" /usr/libexec/gvfsd-admin "$@" --address $DBUS_SESSION_BUS_ADDRESS --dir $XDG_RUNTIME_DIR' gvfsd-admin | ||
AutoMount=false | ||
DBusName=org.gtk.vfs.mountpoint_admin | ||
MountPerClient=true |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: patch | ||
shortdesc: This module is used to apply patches to files at image build image. | ||
example: | | ||
type: patch | ||
patches: | ||
- hardenlogindefs.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
shopt -s nullglob | ||
|
||
get_json_array PATCHES 'try .["patches"][]' "$1" | ||
PATCH_DIR="$CONFIG_DIRECTORY/patches" | ||
readonly PATCHES PATCH_DIR | ||
|
||
main() { | ||
local p | ||
for p in "${PATCHES[@]}"; do | ||
patch --batch --silent --forward --no-backup-if-mismatch \ | ||
--directory=/ --strip=1 < "$PATCH_DIR/$p" | ||
done | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ scripts: | |
- disablegeoclue.sh | ||
- enablesecurebluefirstrun.sh | ||
- createjustcompletions.sh | ||
- patchcommonconf.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,6 @@ modules: | |
- type: script | ||
scripts: | ||
- removedkmshelper.sh | ||
- type: patch | ||
patches: | ||
- admin.mount.patch |