]> git.ipfire.org Git - thirdparty/libvirt.git/commit
security: apparmor: Remove hardcoded "libvirtd" profile name
authorJim Fehlig <jfehlig@suse.com>
Sat, 4 Jan 2025 03:44:19 +0000 (20:44 -0700)
committerJim Fehlig <jfehlig@suse.com>
Mon, 6 Jan 2025 21:59:10 +0000 (14:59 -0700)
commitd2a39db35bc9e8a1c809657ee10df1fd4fd69f79
treef789c95ceedf9d04938fe37101d290d94e411da5
parent6d3b8771713b8180c7ed89d474a39be3cfad3fb8
security: apparmor: Remove hardcoded "libvirtd" profile name

The apparmor driver probe function checks for an active profile matching
the full path of the running daemon binary. If not found, it checks for
a profile named "libvirtd". This works fine when the running daemon is the
old monolithic libvirtd, but fails with modular daemons.

Remove the check for a hardcoded "libvirtd" profile and replace with the
basename of the running daemon binary.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/security/security_apparmor.c