Skip to content

Commit

Permalink
Merge pull request #547 from runcom/selinux-service-info-api-server-docs
Browse files Browse the repository at this point in the history
chore: fixup paths for selinux
  • Loading branch information
mergify[bot] authored Aug 31, 2023
2 parents 3d3cdf1 + 98e9479 commit 80ed0dd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 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/service-info-api/files/hosts
permissions: 644
source_path: /server/local/etc/hosts
- path: /device/etc/resolv.conf
- path: /var/lib/fdo/service-info-api/files/resolv.conf
source_path: /server/local/etc/resolv.conf
commands:
- command: ls
Expand Down Expand Up @@ -493,7 +493,7 @@ Where:
- `files`: [OPTIONAL] transfers files to a device.
- `path`: destination path.
- `permissions`: permissions to set on the file.
- `source_path`: source file path.
- `source_path`: source file path, must be a file under `/var/lib/fdo/`.
- `commands`: [OPTIONAL] executes the given list of commands on the device.
- `command`: command to execute.
- `args`: list of arguments for the command.
Expand Down
2 changes: 1 addition & 1 deletion data-formats/src/messages/v11/diun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Message for Connect {
}

fn is_valid_previous_message(message_type: Option<MessageType>) -> bool {
matches!(message_type, None)
message_type.is_none()
}

fn encryption_requirement() -> Option<EncryptionRequirement> {
Expand Down
2 changes: 1 addition & 1 deletion data-formats/src/messages/v11/to0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl Message for Hello {
}

fn is_valid_previous_message(message_type: Option<MessageType>) -> bool {
matches!(message_type, None)
message_type.is_none()
}

fn encryption_requirement() -> Option<EncryptionRequirement> {
Expand Down
2 changes: 1 addition & 1 deletion data-formats/src/messages/v11/to1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Message for HelloRV {
}

fn is_valid_previous_message(message_type: Option<crate::constants::MessageType>) -> bool {
matches!(message_type, None)
message_type.is_none()
}

fn encryption_requirement() -> Option<EncryptionRequirement> {
Expand Down
2 changes: 1 addition & 1 deletion data-formats/src/messages/v11/to2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Message for HelloDevice {
}

fn is_valid_previous_message(message_type: Option<MessageType>) -> bool {
matches!(message_type, None)
message_type.is_none()
}

fn encryption_requirement() -> Option<EncryptionRequirement> {
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/service-info-api/files/hosts
permissions: 644
source_path: /server/local/etc/hosts
- path: /device/etc/resolv.conf
- path: /var/lib/fdo/service-info-api/files/resolv.conf
source_path: /server/local/etc/resolv.conf
commands:
- command: ls
Expand Down

0 comments on commit 80ed0dd

Please sign in to comment.