Skip to content

Commit

Permalink
chore: fixup paths for selinux
Browse files Browse the repository at this point in the history
Using the service-info-api server with selinux requires us to put
anything we want to send to the device under /var/lib/fdo as that
directory, and its files, will now get the correct selinux label.
The previous approach opens up for security issues by leaving the
process basically accessing the whole host.

Signed-off-by: Antonio Murdaca <[email protected]>
  • Loading branch information
runcom committed Aug 30, 2023
1 parent 3d3cdf1 commit 9a7683a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ service_info:
sshkeys:
- "testkey"
files:
- path: /device/etc/hosts
- path: /var/lib/fdo/etc/hosts
permissions: 644
source_path: /server/local/etc/hosts
- path: /device/etc/resolv.conf
- path: /var/lib/fdo/etc/resolv.conf
source_path: /server/local/etc/resolv.conf
commands:
- command: ls
Expand Down
4 changes: 2 additions & 2 deletions examples/config/serviceinfo-api-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ service_info:
sshkeys:
- "testkey"
files:
- path: /device/etc/hosts
- path: /var/lib/fdo/etc/hosts
permissions: 644
source_path: /server/local/etc/hosts
- path: /device/etc/resolv.conf
- path: /var/lib/fdo/etc/resolv.conf
source_path: /server/local/etc/resolv.conf
commands:
- command: ls
Expand Down

0 comments on commit 9a7683a

Please sign in to comment.