linux/security/apparmor
John Johansen efede141dc apparmor: Fix warning: 'decompress_zstd' defined but not used
decompress_zstd() is used in two cases:

- CONFIG SECURITY_APPARMOR_COMPRESSED_POLICY: which allows for
  compressed policy to be loaded
- CONFIG_SECURITY_APPARMOR_EXPORT_BINARY: which allows introspecting
  loaded policy, that is stored in compressed form until it is needed.

When neither of these are selected there is no need for decpress_zstd(),
which results in the decompressed_zstd defined but not used message.
Only define decmpress_zstd() if either of those config options are
enabled. The stub routine is not needed because all calling code is
gated by one of those config options.

Fixes: 1c5f27e845 ("apparmor: Fix build failure when ZSTD_DECOMPRESS is not enabled")
Signed-off-by: John Johansen <john.johansen@canonical.com>
2026-08-02 23:22:59 -07:00
..
include apparmor: Initial support for compressed policies 2026-06-29 10:27:02 -07:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
.kunitconfig apparmor: add .kunitconfig 2026-02-01 12:01:19 -08:00
af_unix.c apparmor: fix net.h and policy.h circular include pattern 2026-06-29 10:26:21 -07:00
apparmorfs.c apparmor: Fix warning: 'decompress_zstd' defined but not used 2026-08-02 23:22:59 -07:00
audit.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
capability.c apparmor: transition from a list of rules to a vector of rules 2025-07-20 02:31:06 -07:00
crypto.c apparmor: move initcalls to the LSM framework 2025-10-22 19:24:27 -04:00
domain.c apparmor: make include headers self-contained 2026-06-29 10:26:36 -07:00
file.c apparmor: fix uninitialised pointer passed to audit_log_untrustedstring() 2026-06-13 20:20:13 -07:00
ipc.c apparmor: transition from a list of rules to a vector of rules 2025-07-20 02:31:06 -07:00
Kconfig apparmor: Fix build failure when ZSTD_DECOMPRESS is not enabled 2026-07-30 06:42:58 -07:00
label.c apparmor: leverage audit_log_n_untrustedstring() when possible 2026-07-20 19:07:03 -07:00
lib.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
lsm.c apparmor: mediate the implicit connect of TCP fast open sendmsg 2026-06-23 00:16:59 -07:00
Makefile apparmor: make all generated string array headers const char *const 2025-05-25 20:15:01 -07:00
match.c apparmor: propagate -ENOMEM correctly in unpack_table 2026-06-13 20:14:06 -07:00
mount.c apparmor: change fn_label_build() call to not return NULL 2026-06-13 20:14:07 -07:00
net.c apparmor: advertise the tcp fast open fix is applied 2026-06-23 22:15:15 -07:00
nulldfa.in apparmor: cleanup add proper line wrapping to nulldfa.in 2018-02-09 11:30:01 -08:00
path.c apparmor: Fix string overrun due to missing termination 2026-04-22 20:09:05 -07:00
policy_compat.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
policy_ns.c apparmor: fix: limit the number of levels of policy namespaces 2026-03-09 16:05:43 -07:00
policy_unpack_test.c + Features 2025-08-04 08:17:28 -07:00
policy_unpack.c apparmor: Initial support for compressed policies 2026-06-29 10:27:02 -07:00
policy.c apparmor: Initial support for compressed policies 2026-06-29 10:27:02 -07:00
procattr.c apparmor: aa_getprocattr free procattr leak on format failure 2026-06-13 20:18:30 -07:00
resource.c apparmor: fix rlimit for posix cpu timers 2026-01-29 01:27:54 -08:00
secid.c lsm: secctx provider check on release 2024-12-04 14:59:57 -05:00
stacksplitdfa.in apparmor: use the dfa to do label parse string splitting 2018-02-09 11:30:01 -08:00
task.c apparmor: remove unnecessary goto and associated label 2026-06-13 20:18:17 -07:00