Project

General

Profile

Actions

action #167662

closed

action #166613: Yast default selected LSM changes from Apparmor to SELinux, existing openQA test fails in first_boot

[security][tumbleweed] test fails in aa_enforce: audit 4.0 changes need adaption

Added by dimstar 8 months ago. Updated 19 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
8.00 h
Difficulty:

Description

Observation

Failed to restart auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status auditd.service' for details.
YxdDO-4-

auditd.service has: RefuseManualStop=yes

The service that can be restarted with Audit 4.0 is audit-rules; from the upstream changelog:

One of the main features is the separation of loading rules and logging
events into separate services, audit-rules.service and auditd.service.

openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-apparmor@64bit fails in
aa_enforce

Further details

NOTE: The failure in most runs is linked to an existing bug report about wtmp, but the linked error above has been apparently executed on "selinux by default" special image similar to ticket #168571 - it can be seen that the special runs have most/all aa_* tests failing, while the bug related failure only happens in one test.

Acceptance Criteria

  1. Adapt the test to detected whether the daemon to restart is auditd or audit-rules. Newer auditd refuses to be manually restarted.
  2. Study #168571 as well, see if we can exit gracefully aa_status and aa_enforce when SELinux is enabled by default. Check if the remaining aa_* modules can still be executed with the audit reload fixed. Or should apparmor simply be removed once the switch to selinux by default is done?

Related issues 4 (1 open3 closed)

Related to openQA Tests (public) - action #165686: perl-Bootloader package is now update-bootloader in TumbleweedResolvedcvidot2024-08-22

Actions
Related to openQA Tests (public) - action #168445: [security][tumbleweed] audit 4: test fails in ausearch and aulastlogResolvedFSzekely

Actions
Related to openQA Tests (public) - action #168574: [security] test fails in selinux_setupResolvedamanzini2024-10-21

Actions
Has duplicate openQA Tests (public) - action #168571: [security][tumbleweed] test fails in aa_status aa_enforce usr_sbin_smbd settings_disable_enable_apparmor yast2_apparmorWorkable2024-10-21

Actions
Actions #3

Updated by szarate 8 months ago

  • Tags set to bugbusters
  • Assignee set to dimstar
Actions #4

Updated by dimstar 8 months ago

The previous fix was merged - some missing parts:

Actions #5

Updated by slo-gin 8 months ago

This ticket was set to Urgent priority but was not updated within the SLO period. Please consider picking up this ticket or just set the ticket to the next lower priority.

Actions #6

Updated by szarate 8 months ago

  • Related to action #165686: perl-Bootloader package is now update-bootloader in Tumbleweed added
Actions #7

Updated by slo-gin 8 months ago

  • Priority changed from Urgent to High

This ticket was set to Urgent priority but was not updated within the SLO period. The ticket will be set to the next lower priority High.

Actions #8

Updated by szarate 7 months ago

  • Parent task set to #166613

Contact @cahu if any questions.

cc @tjyrinki_suse
Looks like for apparmor and security audit testsuites need to be reworked too. #168571 can be rejected in favor of #167662

Actions #9

Updated by szarate 7 months ago

  • Tags deleted (bugbusters)
  • Assignee changed from dimstar to tjyrinki_suse
Actions #10

Updated by tjyrinki_suse 7 months ago

  • Tags set to apparmor
  • Subject changed from test fails in aa_enforce: audit 4.0 changes need adaption to [security][tumbleweed] test fails in aa_enforce: audit 4.0 changes need adaption
  • Status changed from New to Workable
  • Assignee deleted (tjyrinki_suse)
  • Priority changed from High to Normal
Actions #11

Updated by tjyrinki_suse 7 months ago

  • Has duplicate action #168571: [security][tumbleweed] test fails in aa_status aa_enforce usr_sbin_smbd settings_disable_enable_apparmor yast2_apparmor added
Actions #12

Updated by tjyrinki_suse 7 months ago

  • Description updated (diff)

removed misleading 2023 openQA links from the description

Actions #13

Updated by tjyrinki_suse 7 months ago

  • Description updated (diff)
  • Estimated time set to 8.00 h

Update description.

Actions #14

Updated by tjyrinki_suse 7 months ago

  • Description updated (diff)
Actions #15

Updated by tjyrinki_suse 7 months ago

  • Description updated (diff)
  • Start date deleted (2024-10-01)
Actions #16

Updated by tjyrinki_suse 7 months ago

  • Related to action #168445: [security][tumbleweed] audit 4: test fails in ausearch and aulastlog added
Actions #17

Updated by amanzini 7 months ago

  • Assignee set to amanzini
Actions #18

Updated by amanzini 7 months ago ยท Edited

as a recap,

is there something missing ? I'm a bit confused on what this ticket is asking :)

Actions #20

Updated by amanzini 7 months ago

  • Status changed from Workable to Feedback

szarate wrote in #note-19:

@amanzini see: https://progress.opensuse.org/issues/168574#note-6

well that's another ticket, so I guess this one can be closed ?
(BTW it's still not clear how we are going to manage it, probably it needs some refining )

Actions #21

Updated by tjyrinki_suse 6 months ago

  • Related to action #168574: [security] test fails in selinux_setup added
Actions #22

Updated by tjyrinki_suse 6 months ago

  • Status changed from Feedback to Resolved

Added a relation to the other ticket and closing. Thank you!

Actions #23

Updated by tjyrinki_suse 19 days ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF