selinux/kernel/keycreate_empty_value/main.fmf
Vit Mojzis caa904c01f Fix "adjust" statements
Whenever a key is defined in the tmt hierarchy and some child also
defines that key, the child's will overwrite the previous one. The "+"
changes the operation to "append", so the content of key+ in the child
is added to the existing key.

Meaning that any "adjust" statement in a test plan using a test that
defines it's own "adjust:" is ignored.

Since we are expecting other statements to be appended to the "adjust"
sections, the content of each section needs to be a single list item as
opposed to a set of key-value pairs (first line needs to start with a
hyphen).

- Replace all "adjust:" sections with "adjust+:" in order to honor any
  adjustments further up the tree (parent tests, or test plans).
- Fix malformed "adjust" sections (sets of key-value pairs)

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2025-10-09 20:22:22 +02:00

20 lines
526 B
Text

summary: Test writing empty value into /proc/self/attr/keycreate
description: |
Verifies that writing an empty value into /proc/<PID>/attr/keycreate
is allowed.
contact: Ondrej Mosnacek <omosnace@redhat.com>
component:
- kernel
framework: beakerlib
require:
- policycoreutils
- gcc
duration: 5m
tier: 2
enabled: true
adjust+:
- enabled: false
when: distro < rhel-8.1
because: RHEL-8.0 and below are not expected to have the bug fixed
link:
- verifies: https://bugzilla.redhat.com/show_bug.cgi?id=1719067