Re: [PATCH v2] lsm_audit,selinux: pass IB device name by reference

2021-05-14 Thread Paul Moore
On Wed, May 12, 2021 at 10:32 AM Ondrej Mosnacek wrote: > > While trying to address a Coverity warning that the dev_name string > might end up unterminated when strcpy'ing it in > selinux_ib_endport_manage_subnet(), I realized that it is possible (and > simpler) to just pass the dev_name pointer d

Re: [PATCH v2] lsm_audit,selinux: pass IB device name by reference

2021-05-12 Thread Richard Guy Briggs
On 2021-05-12 16:32, Ondrej Mosnacek wrote: > While trying to address a Coverity warning that the dev_name string > might end up unterminated when strcpy'ing it in > selinux_ib_endport_manage_subnet(), I realized that it is possible (and > simpler) to just pass the dev_name pointer directly, rather

[PATCH v2] lsm_audit,selinux: pass IB device name by reference

2021-05-12 Thread Ondrej Mosnacek
While trying to address a Coverity warning that the dev_name string might end up unterminated when strcpy'ing it in selinux_ib_endport_manage_subnet(), I realized that it is possible (and simpler) to just pass the dev_name pointer directly, rather than copying the string to a buffer. The ibendport