aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorMickaël Salaün <[email protected]>2024-02-23 19:05:45 +0000
committerPaul Moore <[email protected]>2024-02-23 22:16:33 +0000
commit86dc9693145bc3b2c21d2bc6a2563376ba8b15ff (patch)
tree6a2dd2c623306248118fc6816b80e0f1a086b623 /drivers/net/ethernet/intel/ice/ice_main.c
parentlsm: fix integer overflow in lsm_set_self_attr() syscall (diff)
downloadkernel-86dc9693145bc3b2c21d2bc6a2563376ba8b15ff.tar.gz
kernel-86dc9693145bc3b2c21d2bc6a2563376ba8b15ff.zip
selinux: fix lsm_get_self_attr()
selinux_getselfattr() doesn't properly initialize the string pointer it passes to selinux_lsm_getattr() which can cause a problem when an attribute hasn't been explicitly set; selinux_lsm_getattr() returns 0/success, but does not set or initialize the string label/attribute. Failure to properly initialize the string causes problems later in selinux_getselfattr() when the function attempts to kfree() the string. Cc: Casey Schaufler <[email protected]> Fixes: 762c934317e6 ("SELinux: Add selfattr hooks") Suggested-by: Paul Moore <[email protected]> [PM: description changes as discussed in the thread] Signed-off-by: Mickaël Salaün <[email protected]> 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