Skip to content

Commit 6e31b30

Browse files
committed
feat: add type documentation
1 parent 586a029 commit 6e31b30

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

config/fcos/v1_6_exp/schema.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ type Config struct {
2222
base.Config `yaml:",inline"`
2323
BootDevice BootDevice `yaml:"boot_device"`
2424
Grub Grub `yaml:"grub"`
25+
Selinux Selinux `yaml:"selinux"`
2526
}
2627

2728
type BootDevice struct {
28-
Layout *string `yaml:"layout"`
29-
Luks BootDeviceLuks `yaml:"luks"`
30-
Mirror BootDeviceMirror `yaml:"mirror"`
31-
Selinux Selinux `yaml:"selinux"`
29+
Layout *string `yaml:"layout"`
30+
Luks BootDeviceLuks `yaml:"luks"`
31+
Mirror BootDeviceMirror `yaml:"mirror"`
3232
}
3333

3434
type BootDeviceLuks struct {
@@ -54,5 +54,4 @@ type GrubUser struct {
5454
type Selinux struct {
5555
State *string `yaml:"state"`
5656
Mode *string `yaml:"mode"`
57-
Path *string `yaml:"path"`
5857
}

docs/config-fcos-v1_6-exp.md

+3
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,6 @@ The Fedora CoreOS configuration is a YAML document conforming to the following s
224224
* **_users_** (list of objects): the list of GRUB superusers.
225225
* **name** (string): the user name.
226226
* **password_hash** (string): the PBKDF2 password hash, generated with `grub2-mkpasswd-pbkdf2`.
227+
* **_selinux_** (object): describes the security framework with precise access controls
228+
* **state** (boolean): wheter or not SElinux should be enabled.
229+
* **mode** (boolean): when enabled, SElinux have two modes: `enforcing`, which enforce security policies or `permissive`, which just logs policy violations.

0 commit comments

Comments
 (0)