diff options
| author | Mickaël Salaün <[email protected]> | 2024-02-23 19:05:46 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2024-02-23 22:16:33 +0000 |
| commit | 6d2fb472ea9ea27f765f10ba65ec73d30f6b7977 (patch) | |
| tree | 8b39d68c46c7859cc90d8bf1063e2c67d9c05536 /drivers/net/ethernet/intel/ice/ice_main.c | |
| parent | selinux: fix lsm_get_self_attr() (diff) | |
| download | kernel-6d2fb472ea9ea27f765f10ba65ec73d30f6b7977.tar.gz kernel-6d2fb472ea9ea27f765f10ba65ec73d30f6b7977.zip | |
apparmor: fix lsm_get_self_attr()
In apparmor_getselfattr() when an invalid AppArmor attribute is
requested, or a value hasn't been explicitly set for the requested
attribute, the label passed to aa_put_label() is not properly
initialized which can cause problems when the pointer value is non-NULL
and AppArmor attempts to drop a reference on the bogus label object.
Cc: Casey Schaufler <[email protected]>
Cc: John Johansen <[email protected]>
Fixes: 223981db9baf ("AppArmor: Add selfattr hooks")
Signed-off-by: Mickaël Salaün <[email protected]>
Reviewed-by: Paul Moore <[email protected]>
[PM: description changes as discussed with MS]
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions
