Re: [RESEND PATCH 2/2] audit: uninitialize variable audit_sig_sid

2020-08-17 Thread Paul Moore
On Thu, Aug 6, 2020 at 2:35 PM Paul Moore wrote: > > On Mon, Aug 3, 2020 at 8:35 AM Jules Irenge wrote: > > > > Checkpatch tool reports > > > > "ERROR: do not initialise globals/statics to 0" > > > > To fix this, audit_sig_sid is uninitialized > > As this is stored in the .bss section, > > the co

Re: [RESEND PATCH 1/2] audit: change unnecessary globals into statics

2020-08-17 Thread Paul Moore
On Thu, Aug 6, 2020 at 2:33 PM Paul Moore wrote: > > On Mon, Aug 3, 2020 at 8:35 AM Jules Irenge wrote: > > > > Variables sig_pid, audit_sig_uid and audit_sig_sid > > are only used in the audit.c file across the kernel > > Hence it appears no reason for declaring them as globals > > This patch re