Skip to content

Commit 13bddc2

Browse files
Tobias Oedxjamesmorris
authored andcommitted
SELinux: Use %lu for inode->i_no when printing avc
Inode numbers are unsigned long and so need to %lu as format string of printf. Signed-off-by: Tobias Oed <tobias.oed@octant-fr.com> Signed-off-by: James Morris <jmorris@namei.org>
1 parent 2c3c05d commit 13bddc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎security/selinux/avc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ void avc_audit(u32 ssid, u32 tsid,
586586
}
587587
}
588588
if (inode)
589-
audit_log_format(ab, " dev=%s ino=%ld",
589+
audit_log_format(ab, " dev=%s ino=%lu",
590590
inode->i_sb->s_id,
591591
inode->i_ino);
592592
break;

0 commit comments

Comments
 (0)