Skip to content
  1. Jan 18, 2014
  2. Jan 15, 2014
    • Joe Perches's avatar
      audit: Convert int limit uses to u32 · 3e1d0bb6
      Joe Perches authored
      
      
      The equivalent uapi struct uses __u32 so make the kernel
      uses u32 too.
      
      This can prevent some oddities where the limit is
      logged/emitted as a negative value.
      
      Convert kstrtol to kstrtouint to disallow negative values.
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      [eparis: do not remove static from audit_default declaration]
      3e1d0bb6
    • Joe Perches's avatar
      audit: Use more current logging style · d957f7b7
      Joe Perches authored
      
      
      Add pr_fmt to prefix "audit: " to output
      Convert printk(KERN_<LEVEL> to pr_<level>
      Coalesce formats
      Use pr_cont
      Move a brace after switch
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      d957f7b7
    • Joe Perches's avatar
      audit: Use hex_byte_pack_upper · b8dbc324
      Joe Perches authored
      Using the generic kernel function causes the
      object size to increase with gcc 4.8.1.
      
      $ size kernel/audit.o*
         text	   data	    bss	    dec	    hex	filename
        18577	   6079	   8436	  33092	   8144	kernel/audit.o.new
        18579	   6015	   8420	  33014	   80f6	kernel/audit.o.old
      
      Unsigned...
      b8dbc324
  3. Jan 14, 2014