summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorTobias Oed <tobias.oed@octant-fr.com>2007-06-11 14:56:31 +0200
committerJames Morris <jmorris@namei.org>2007-07-12 04:52:27 +0200
commit13bddc2e9d591e31bf20020dc19ea6ca85de420e (patch)
treeb813a0a060439c4cfb84c93dc14307179465829b /security
parentSELinux: allow preemption between transition permission checks (diff)
downloadlinux-13bddc2e9d591e31bf20020dc19ea6ca85de420e.tar.xz
linux-13bddc2e9d591e31bf20020dc19ea6ca85de420e.zip
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>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/avc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c
index cc5fcef9e226..78c408fd2b02 100644
--- a/security/selinux/avc.c
+++ b/security/selinux/avc.c
@@ -586,7 +586,7 @@ void avc_audit(u32 ssid, u32 tsid,
}
}
if (inode)
- audit_log_format(ab, " dev=%s ino=%ld",
+ audit_log_format(ab, " dev=%s ino=%lu",
inode->i_sb->s_id,
inode->i_ino);
break;