2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

regression tests: add FIPS-140-2 lib validation hmac files

DBus services link against libgcrypt, and thus when libgcrypt has had
patches applied to make it FIP 140-2 compliant, the dbus based tests
confined by apparmor need access to the associated library integrity validation
file. Fix this by causing mkprofile to grant read access in all
generated profiles by default.

Signed-off-by: Steve Beattie <steve.beattie@canonical.com>
Bug: https://bugs.launchpad.net/bugs/1891664
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/595
This commit is contained in:
Steve Beattie
2020-08-24 22:46:08 -07:00
parent e463f9ad44
commit ec62254b04

View File

@@ -101,6 +101,10 @@ sub gen_default_rules() {
# give every profile access to /dev/urandom (propolice, etc.)
gen_file("/dev/urandom:r");
# give every profile access to FIPS hmac files in /lib and /usr/lib
gen_file("/{usr/,}lib{,32,64}/.lib*.so*.hmac:r");
gen_file("/{usr/,}lib/{,**/}.lib*.so*.hmac:r");
}
sub gen_elf_binary($) {