Actions
Bug #65683
opencephadmin wrongly assumes that lines in /sys/kernel/security/apparmor/profiles contain exactly one space
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
The code in line
https://github.com/ceph/ceph/blob/1680e466aab77cdf9ba07394bea664106580b32b/src/cephadm/cephadmlib/host_facts.py#L722 (tag v19.0.0)
resp.
https://github.com/ceph/ceph/blob/531c0d11a1c5d39fbfe6aa8a521f023abf3bf3e2/src/cephadm/cephadm.py#L9658 (tag v18.2.2)
assumes that AppArmor profile names contain no spaces. See https://bugs.launchpad.net/apparmor/+bug/2062941 for an example
where this assumption causes problems with Ubuntu 24.04.
Replacing the mentioned line with
item, mode = line.rsplit(' ', 1)
should fix this issue.
No data to display
Actions