|
27.
|
|
|
![](/@@/translation-newline)
The export-key command exports a public key assertion body that may be ![](/@@/translation-newline)
imported by other systems.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_export_key.go:43
|
|
28.
|
|
|
![](/@@/translation-newline)
The fde-setup-request command is used inside the fde-setup hook. It will ![](/@@/translation-newline)
return information about what operation for full-disk encryption is ![](/@@/translation-newline)
requested and auxiliary data to complete this operation.
![](/@@/translation-newline)
The fde-setup hook should do what is requested and then call ![](/@@/translation-newline)
"snapctl fde-setup-result" and pass the result data to stdin.
![](/@@/translation-newline)
Here is an example for how the fde-setup hook is called initially: ![](/@@/translation-newline)
$ snapctl fde-setup-request ![](/@@/translation-newline)
{"op":"features"} ![](/@@/translation-newline)
$ echo '[]' | snapctl fde-setup-result
![](/@@/translation-newline)
Alternatively the hook could reply with: ![](/@@/translation-newline)
$ echo '{"error":"hardware-unsupported"}' | snapctl fde-setup-result
![](/@@/translation-newline)
And then it is called again with a request to do the initial key setup: ![](/@@/translation-newline)
$ snapctl fde-setup-request ![](/@@/translation-newline)
{"op":"initial-setup", "key": "key-to-seal", "key-name":"key-for-ubuntu-data"} ![](/@@/translation-newline)
$ echo "$sealed_key" | snapctl fde-setup-result
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/fde_setup.go:36
|
|
29.
|
|
|
![](/@@/translation-newline)
The fde-setup-result command sets the result data for a fde-setup hook ![](/@@/translation-newline)
reading it from stdin.
![](/@@/translation-newline)
For example: ![](/@@/translation-newline)
When the fde-setup hook is called with "op":"features: ![](/@@/translation-newline)
$ echo "[]" | snapctl fde-setup-result
![](/@@/translation-newline)
When the fde-setup hook is called with "op":"initial-setup": ![](/@@/translation-newline)
$ echo "sealed-key" | snapctl fde-setup-result
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/fde_setup.go:101
|
|
30.
|
|
|
![](/@@/translation-newline)
The file-access command returns information about a snap's file system access.
![](/@@/translation-newline)
This command is used by the xdg-document-portal service to identify ![](/@@/translation-newline)
files that do not need to be proxied to provide access within ![](/@@/translation-newline)
confinement.
![](/@@/translation-newline)
File paths are interpreted as host file system paths. The tool may ![](/@@/translation-newline)
return false negatives (e.g. report that a file path is unreadable, ![](/@@/translation-newline)
despite being readable under a different path). It also does not ![](/@@/translation-newline)
check if file system permissions would render a file unreadable.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_routine_file_access.go:43
|
|
31.
|
|
|
![](/@@/translation-newline)
The find command queries the store for available packages.
![](/@@/translation-newline)
With the --private flag, which requires the user to be logged-in to the store ![](/@@/translation-newline)
(see 'snap help login'), it instead searches for private snaps that the user ![](/@@/translation-newline)
has developer access to, either directly or through the store's collaboration ![](/@@/translation-newline)
feature.
![](/@@/translation-newline)
A green check mark (given color and unicode support) after a publisher name ![](/@@/translation-newline)
indicates that the publisher has been verified.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_find.go:40
|
|
36.
|
|
|
![](/@@/translation-newline)
The info command shows detailed information about snaps.
![](/@@/translation-newline)
The snaps can be specified by name or by path; names are looked for both in the ![](/@@/translation-newline)
store and in the installed snaps; paths can refer to a .snap file, or to a ![](/@@/translation-newline)
directory that contains an unpacked snap suitable for 'snap try' (an example ![](/@@/translation-newline)
of this would be the 'prime' directory snapcraft produces).
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_info.go:59
|
|
37.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_snap_op.go:52
|
|
39.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_interfaces.go:40
|
|
40.
|
|
|
![](/@@/translation-newline)
The is-connected command returns success if the given plug or slot of the ![](/@@/translation-newline)
calling snap is connected, and failure otherwise.
![](/@@/translation-newline)
$ snapctl is-connected plug ![](/@@/translation-newline)
$ echo $? ![](/@@/translation-newline)
1
![](/@@/translation-newline)
Snaps can only query their own plugs and slots - snap name is implicit and ![](/@@/translation-newline)
implied by the snapctl execution context.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
overlord/hookstate/ctlcmd/is_connected.go:40
|
|
41.
|
|
|
![](/@@/translation-newline)
The keys command lists cryptographic keys that can be used for signing ![](/@@/translation-newline)
assertions.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cmd/snap/cmd_keys.go:39
|